重庆分公司,新征程启航
为企业提供网站建设、域名注册、服务器等服务
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
mkdir -p /data/docker /etc/docker
vi /etc/docker/daemon.json
{
"graph": "/data/docker",
"storage-driver": "overlay2",
"insecure-registries": ["registry.access.redhat.com","quay.io","test-harbor.cedarhd.com"],
"registry-mirrors": ["https://q2gr04ke.mirror.aliyuncs.com"],
"bip": "172.7.21.1/24",
"exec-opts": ["native.cgroupdriver=systemd"],
"live-restore": true
}
# 如果是10.3.153.221,这里得172.7.21.1/24是指在nodes1机器上
# 如果是10.3.153.222,这里得172.7.22.1/24是指在nodes1机器上
# 如果是10.3.153.200,这里得172.7.20.1/24是指在nodes1机器上
systemctl start docker
systemctl enable docker
docker version
docker ps -a