标签:mon 安装docker mirrors mct manager linu docke lvm2 eof
[root@node-1 ~]# yum install -y yum-utils device-mapper-persistent-data lvm2
[root@node-1 ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
[root@node-1 ~]# yum install -y docker-ce-19.03.6 docker-ce-cli-19.03.6 containerd.io
1 启动Docker服务
[root@node-1 ~]# chkconfig docker on
[root@node-1 ~]# service docker start
[root@node-1 ~]# service docker status
2 配置镜像加速器(所有node节点)
[root@node-1 ~]# mkdir -p /etc/docker
[root@node-1 ~]# tee /etc/docker/daemon.json <<-‘EOF‘
{
"registry-mirrors": ["https://plqjafsr.mirror.aliyuncs.com"]
}
EOF
[root@node-1 ~]# systemctl daemon-reload
[root@ node-1 ~]# systemctl restart docker
标签:mon 安装docker mirrors mct manager linu docke lvm2 eof
原文地址:https://www.cnblogs.com/liangchen4/p/14065605.html