十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
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