1、分別須要在運維主機與兩臺運算節點服務器安裝DOCKER
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