yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo yum makecache fast
yum -y install docker-ce
service docker start docker version
docker pull hello-world docker run hello-world
登陆 https://cr.console.aliyun.com
查看个人专属加速地址。
vi /etc/docker/daemon.json { "registry-mirrors": ["https://xxxxxx.mirror.aliyuncs.com"] }
sudo systemctl daemon-reload sudo systemctl restart docker
本文由 奔跑的杂粮煎饼 发布~