Release notes
Official Website Installation Tutorial
Install the docker
There are many installation tutorials on the Internet, most of which are summarized by others and can be said to be results, but do not introduce how to achieve the results. This tutorial will show you how to install Docker on centos. This tutorial will show you how to install Docker on centos. This tutorial will show you how to install Docker on centos. (The official website tutorial is for foreign, so there are some adjustments for domestic installation)
Release notes
Centos-7 (The new version has high usability, and many enterprises do not use centos-6.8, so the centos-7 version is selected here, which conforms to the real enterprise scenario)
Official Website Installation Tutorial
Docs.docker.com/engine/inst…
Install the docker
Uninstalling an old version
sudo yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
Copy the code
Dependencies required to install the Docker environment
sudo yum install -y yum-utils device-mapper-persistent-data lvm2
Copy the code
Set location of Docker in yum repository
sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
Copy the code
Install the docker
sudo yum install docker-ce docker-ce-cli containerd.io
Copy the code
Configure Aliyun Docker image accelerator (Docker downloads images from abroad by default, slow network speed)
Aliyun Docker image accelerator is free, you can log in and apply
Set Docker to boot automatically upon startup
system enable docker
Copy the code
Verify that Docker was installed successfully
sudo docker run hello-world
Copy the code
Teach a man to fish rather than give him a fish