Because the Base images pulled by Docker, such as Centos and Ubuntu, are the simplest versions and do not contain the Ping tool. When performing Docker network and Docker link operations on Docker, the Ping tool is often used to test the network between two containers. At this time, the Ping tool is needed. Below is the command to install the Ping tool in Ubuntu:
Additional knowledge: standard_init_linux.go:211: exec user process caused "no such file or direct" problem Summarizes some issues on the Internet In Windows environment, because the file type is DOS, just convert it to Unix and then compile it. Need to install dos2unix dos2unix file This problem does not exist on Mac, you need to disable cgo Add CGO_ENABLED=0 in dockerfile
In the end, there is really no way Changing the base image from alpine to from centos will solve the problem But this image file is relatively large The above article on installing the ping tool in the container built by Docker is all the content that the editor shares with you. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. You may also be interested in:
|
<<: HTML Tutorial: Unordered List
>>: Example of using MRG_MyISAM (MERGE) to implement query after partitioning in MySQL
Business scenario: querying tables in different d...
I installed a Linux Ubuntu system on my computer....
Tomcat server is a free and open source Web appli...
Downloaded an es image from docker hub, version 6...
Table of contents Breaking down components Left P...
Web Application Class 1. DownForEveryoneOrJustMe ...
Source code (some classes deleted): Copy code The ...
Preface As we all know, the nginx configuration f...
Introduction yum (Yellow dog Updater, Modified) i...
Vue $set array collection object assignment In th...
Vue methods and properties 1. Methods Usage 1 met...
Table of contents 1. Overview of the page 2. Infi...
Mobile browsers place web pages in a virtual "...
1. Docker pulls the image docker pull mysql (pull...
Nginx can use its reverse proxy function to imple...