标签:服务 com class dir centos color device start persist
安装依赖包
yum install -y yum-utils device-mapper-persistent-data lvm2
置阿里云镜像源
yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
开始安装
yum install docker-ce
开机自启docker
systemctl enable docker
启动docker服务
systemctl start docker
加速器地址
mkdir -p /etc/docker tee /etc/docker/daemon.json <<-‘EOF‘ { "registry-mirrors": ["https://sg7r7zsg.mirror.aliyuncs.com"] } EOF
重启docker
systemctl stop docker
systemctl daemon-reload
systemctl restart docker
标签:服务 com class dir centos color device start persist
原文地址:https://www.cnblogs.com/djlsunshine/p/13368621.html