Transfer telnet to busybox-extras in Alpine image
The telnet in the Alpine image is transferred to the busybox-extras package after version 3.7 and needs to be installed separately using apk.
Phenomenon
Alpine version is 3.8.There is no more telent pointing to busybox
~ # cat / etc/alpine-release3.8.0~ # ~ # ls / usr/bin/ | grep-w busybox | grep telnet~ #
Reason
Confirming the relevant issue findings, this change has already taken place in Alpine3.7: https://github.com/gliderlabs/docker-alpine/issues/397
Correspondence
Use apk to install
Apk update
/ var/atlassian/jira # apk updatefetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gzfetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gzv3.8.0-28-g923d74cddf [http://dl-cdn.alpinelinux.org/alpine/v3.8/main]v3.8.0-28-g923d74cddf [http://dl-cdn.alpinelinux.org/alpine/ V3.8/community] OK: 9536 distinct packages available/var/atlassian/jira #
Apk add busybox-extras
/ var/atlassian/jira # apk add busybox-extras (1amp 1) Installing busybox-extras (1.28.4-r1) Executing busybox-extras-1.28.4-r1.post-installExecuting busybox-1.28.4-r0.triggerOK: 133 MiB in 76 packages/var/atlassian/jira #
Confirm after installation
Confirm the telnet installation path
/ var/atlassian/jira # which telnet/usr/bin/telnet/var/atlassian/jira # ~ # ls-l / usr/bin/telnetlrwxrwxrwx 1 root root 19 Jul 24 01:40 / usr/bin/telnet-> / bin/busybox-extras~ # ls / bin/busybox
Confirm action
When the network is connected, telnet can communicate with the smtp server
~ # telnet smtp.163.com 25220 163.com Anti-spam GT for Coremail System (163com [20141201]) HELO liumiaocn250 OK
Summary
The above is the whole content of this article. I hope the content of this article has a certain reference and learning value for everyone's study or work. Thank you for your support. If you want to know more about it, please see the relevant links below.