Home>Article>Operation and Maintenance> Can docker use yum command?

Can docker use yum command?

藏色散人
藏色散人 Original
2022-01-20 15:07:52 4353browse

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" .

Can docker use yum command?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:what is docker hub Next article:what is docker hub