Telnet is moved to busybox-extras in Alpine image

Telnet is moved to busybox-extras in Alpine image

The telnet in the Alpine image has been moved to the busybox-extras package after version 3.7 and needs to be installed separately using apk.

Phenomenon

Alpine version is 3.8, no longer has a telent pointing to busybox

~ # cat /etc/alpine-release
3.8.0
~ #
~ # ls /usr/bin/ |grep -w busybox |grep telnet
~ #

reason

Confirmed the related issue discovery, this change has already occurred in Alpine 3.7: https://github.com/gliderlabs/docker-alpine/issues/397

correspond

Use apk to install

apk update

/var/atlassian/jira # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
v3.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
(1/1) Installing busybox-extras (1.28.4-r1)
Executing busybox-extras-1.28.4-r1.post-install
Executing busybox-1.28.4-r0.trigger
OK: 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/telnet
lrwxrwxrwx 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 25
220 163.com Anti-spam GT for Coremail System (163com[20141201])
HELO liumiaocn
250 OK

Summarize

The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links

You may also be interested in:
  • Implementation of tomcat image created with dockerfile based on alpine
  • Implementation of crawler Scrapy image created by dockerfile based on alpine
  • How to build php-nginx-alpine image from scratch in Docker
  • How to deploy tomcat in batches with ansible
  • Sample code for installing Ansible under Centos
  • Python ansible service and script writing
  • Ansible as a Python module library method example
  • Detailed tutorial on using the Linux automated operation and maintenance tool Ansible
  • Cluster operation and maintenance automation tool Ansible uses playbook to install the zabbix client
  • How to add ansible service in alpine image

<<:  Sample code for highlighting search keywords in WeChat mini program

>>:  mysql 5.7.5 m15 winx64.zip installation tutorial

Recommend

Solution to the problem that Centos8 cannot install docker

Problem [root@zh ~]# [root@zh ~]# [root@zh ~]# yu...

How to change the mysql password on the Xampp server (with pictures)

Today, I found out while working on PHP that if w...

Detailed steps to use Redis in Docker

1. Introduction This article will show you how to...

Solution for front-end browser font size less than 12px

Preface When I was working on a project recently,...

CenterOS7 installation and configuration environment jdk1.8 tutorial

1. Uninstall the JDK that comes with centeros fir...

A summary of the reasons why Mysql does not use date field index

Table of contents background explore Summarize ba...

Use Docker to create a distributed lnmp image

Table of contents 1. Docker distributed lnmp imag...

Linux common text processing commands and vim text editor

Today, let's introduce several common text pr...

JavaScript super detailed implementation of web page carousel

Table of contents Creating HTML Pages Implement t...

Vue implements scroll loading table

Table of contents Achieve results Rolling load kn...

How to delete special character file names or directories in Linux

Delete a file by its inode number First use ls -i...

CSS stacking and z-index example code

Cascading and Cascading Levels HTML elements are ...

Vue project @change multiple parameters to pass multiple events

First, there is only one change event. changeleve...

Vue implements div wheel zooming in and out

Implement div wheel zooming in and out in Vue pro...

Use Shell scripts to batch start and stop Docker services

Table of contents Start Docker Stop Docker Python...