Recently, when I was learning docker, I found that ifconfig was used to query the network status in the docker container. The command not found message appeared. After searching the information, I learned that the images on Docker are installed in the lightest way, and some commands need to be installed by yourself. Solution:yum install net-tools If yum is not available, you can use apt-get install net-tools to solve it Supplement: Install vim, telnet, ifconfig commands in docker container When using a docker container, sometimes vim is not installed in it, and when you type the vim command, it prompts: vim: command not found. At this time, you need to install vim, but when you type the apt-get install vim command, it prompts:
At this time, you need to type: apt-get update, The purpose of this command is to synchronize the indexes of the sources listed in /etc/apt/sources.list and /etc/apt/sources.list.d so that the latest software packages can be obtained. After the update is complete, type the command: apt-get install vim. apt-get install telnet Install telnet apt-get install net-tools Install ifconfig The above is my personal experience. I hope it can give you a reference. I also hope that you will support 123WORDPRESS.COM. If there are any mistakes or incomplete considerations, please feel free to correct me. You may also be interested in:
|
>>: Solution for applying CSS3 transforms to background images
<br />The header refers to the first row of ...
——Notes from "MySQL in Simple Terms (Second ...
When using the <html:reset> tag, sometimes w...
The Kubernetes team recently announced that it wi...
When threads execute concurrently, we need to ens...
I started working on my final project today, but ...
When receiving this requirement, Baidu found many...
1. Prepare in Advance For your convenience, I cre...
This article shares the specific code of js to im...
This article example shares the specific code of ...
The target attribute of a link determines where th...
1. Float: The main purpose is to achieve the effe...
Table of contents Preface call usage accomplish A...
How to introduce svg icons in Vue Method 1 of int...
Table of contents 1. Use the a tag to preview or ...