This article is a mirror article of machine translation, please click here to jump to the original article.

View: 31804|Reply: 6

[linux] Install Docker containers on CentOS 7

[Copy link]
Posted on 7/22/2021 4:06:16 PM | | | |
Review:

Docker upgrade to the latest version
https://www.itsvse.com/thread-8932-1-1.html

Docker builds a private image repository
https://www.itsvse.com/thread-8389-1-1.html

Centos7 Docker installation and configuration in practice
https://www.itsvse.com/thread-5014-1-1.html

Docker versions are divided into CE and EE distinctions
https://www.itsvse.com/thread-5013-1-1.html
First, check the system information:

[root@centos7-dev01 ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
Official documentation link:The hyperlink login is visible.

Uninstall the old version


Older versions of Docker are called docker or docker-engine. If these are installed, uninstall them along with their associated dependencies.

If yum reports that the packages are not installed, that's okay.

The content of /var/lib/docker/, including images, containers, volumes, and networks, will be retained. The Docker engine package is now called docker-ce.

Use Docker's repository and install it from there

Set up the repository, install the yum-utils package (which provides the yum-config-manager utility), and set up the stable repository.


Install the Docker engine with the following command:

Start docker and set it to turn on autoboot



(End)




Previous:Linux kills a specified process by combining ps with kill
Next:CentOS 7 installs KubeSphere in All-in-One mode
 Landlord| Posted on 10/12/2021 3:46:47 PM |
Replace download.docker.com with a mirror source of Tsinghua University in China



https://mirror.tuna.tsinghua.edu.cn/help/docker-ce/
Posted on 2/21/2023 3:08:34 PM |
See what it looks like
Posted on 3/1/2023 4:20:37 PM |
Learn from it, thanks for sharing
Posted on 3/12/2023 8:30:11 AM |
Learn to learn
 Landlord| Posted on 5/28/2023 5:24:16 PM |
Install the docker environment on Windows 11 below, enter the docker-desktop system, and the command is as follows:




 Landlord| Posted on 10/6/2023 8:15:11 PM |
Ubuntu 20.04 installs the docker service with the following command:

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com