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
inherit 1. What is inheritance Inheritance: First...
Table of contents summary Basic Example motivatio...
Effect demo.html <html> <head> <me...
Step 1: yum install httpd -y #Install httpd servi...
We don’t often encounter 404 pages when we browse...
Table of contents Preface 1. What is phantom read...
Table of contents 1. Scenario description: 2. Cas...
Preface Execute the show create table <tablena...
Table of contents 1. Query Optimization 1. MySQL ...
This article example shares the specific code of ...
I have recently been following the CSS Animation ...
In the past, creating a printer-friendly version ...
Open the connection tool. I use MobaXterm_Persona...
Record the installation and configuration method ...
Table of contents Overview The history of CPU-bou...