您好,登錄后才能下訂單哦!
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
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。