架构图 一、本节架构
二、安装
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
三、配置docker
mkdir -p /etc/docker /data/docker
cat > /etc/docker/daemon.json <<'eof'
{
"graph": "/data/docker",
"storage-driver": "overlay2",
"insecure-registries": ["registry.access.redhat.com","quay.io","harbor.od.com"],
"registry-mirrors": ["https://q2gr04ke.mirror.aliyuncs.com"],
"bip": "172.7.21.1/24",
"exec-opts": ["native.cgroupdriver=systemd"],
"live-restore": true
}
eof
四、启动验证docker
systemctl start docker
systemctl enable docker.service
docker info
docker version
docker ps -a