Docker installation
Linux installation Docker
Docker official CentOS installation address: docs.docker.com/engine/inst…
1. Install the yum tool
$ sudo yum install -y yum-utils
Copy the code
2. Register the warehouse
$ sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
Copy the code
3. Install the latest docker-ce docker-ce-CLI
$ sudo yum install docker-ce docker-ce-cli containerd.io
Copy the code
4. Start the docker
$ sudo systemctl start docker
Copy the code
5. Check whether the Docker permit is successful
$sudo docker version - view the docker version $sudo docker ps - ef | grep docker - view the docker process statusCopy the code
Configure an Aliyun mirror
Reference address www.cnblogs.com/pandaly/p/1… 1. Log in to the Aliyun console
2. Search for container image services
3. Select the mirror accelerator in the mirror center
4. Copy the accelerator address and follow the operation document
Users with Docker client versions larger than 1.10.0 can use the accelerator by modifying the daemon configuration file /etc/dock/daemon. json
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://qxguak05.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
Copy the code
5. Check whether the image is configured successfully. Use the docker info command to check whether the Registry Mirrors option is an Aliyun address
$sudo docker info
Copy the code