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

Can docker use yum command?

藏色散人
Release: 2022-01-20 15:07:52
Original
4477 people have browsed it

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 ;
Copy after login

Update apt-get command

apt-get update
Copy after login

Install yum Command

apt-get install vim
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template