Docker Community Forums

Share and learn in the Docker community.

How to install telnet in python-alpine

I want to use telnet in container built from python-alpine. How to install it?

how to install telnet using apkshell
0
1

docker exec -it CONTAINERID /bin/sh
2
/app # telnet
3
/bin/sh: telnet: not found
4

5
/app # apk update
6
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
7
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
8
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
9
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
10
OK: 9051 distinct packages available
11

12
/app # apk add busybox-extras
13
(1/1) Installing busybox-extras (1.27.2-r11)
14
Executing busybox-extras-1.27.2-r11.post-install
15
Executing busybox-1.27.2-r7.trigger
16
OK: 77 MiB in 64 packages
17

18
/app # busybox-extras telnet localhost 6900

What you think about it? I am not good at it at all