首页 > IT职业 > IT图书 > centos 安装 docker
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
查看个人专属加速地址。
vi /etc/docker/daemon.json
{
"registry-mirrors": ["https://xxxxxx.mirror.aliyuncs.com"]
}
sudo systemctl daemon-reload
sudo systemctl restart docker
本文由 奔跑的杂粮煎饼 发布~
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/3181/viewspace-2826181/ ,如需转载,请注明出处,否则将追究法律责任。