标签:isa yun lvm2 ecs proc water nta docker-ce grep
centos7版本部署docker yum install epel-release -y
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum-config-manager --enable docker-ce-nightly
yum-config-manager --enable docker-ce-test
yum-config-manager --disable docker-ce-nightly
yum install docker-ce docker-ce-cli containerd.io
#自己注册一个阿里云账号,然后选择ECS中的镜像加速服务,就可以出现一个加速地址,将加速地址配到json文件中
#也就是以下步骤
mkdir /etc/docker -p
vim /etc/docker/daemon.json
{
"registry-mirrors": ["https://g80gj7jy.mirror.aliyuncs.com"]
}
systemctl daemon-reload
systemctl restart docker
ps -ef|grep docker
docker run hello-world
标签:isa yun lvm2 ecs proc water nta docker-ce grep
原文地址:http://blog.51cto.com/linux1991/2350365