Home > Article > Operation and Maintenance > Can docker use yum command?
Docker can use the yum command. How to install yum in the docker container: 1. Update the apt-get command through "apt-get update"; 2. Install the yum command through "apt-get install vim" .
The operating environment of this article: centOS6.8 system, Docker version 18.09.x, Dell G3 computer.
Can I use the yum command with docker?
Docker can use the yum command.
Install yum, vim and other commands in the docker container, and configure the ls command
Use domestic mirrors
cp /etc/apt/sources.list /etc/apt/sources.list.bak echo "" > /etc/apt/sources.list echo "deb http://mirrors.aliyun.com/debian buster main" >> /etc/apt/sources.list ; echo "deb http://mirrors.aliyun.com/debian-security buster/updates main" >> /etc/apt/sources.list ; echo "deb http://mirrors.aliyun.com/debian buster-updates main" >> /etc/apt/sources.list ;
Update apt-get command
apt-get update
Install yum Command
apt-get install vim
Recommended learning: "docker video tutorial"
The above is the detailed content of Can docker use yum command?. For more information, please follow other related articles on the PHP Chinese website!