注:以下操作需在所有节点下(含master及node)下都做!
CenterOS 条件:
1、必须是64位操作系统;
2、内核需在3.8以上
wget https: //mirrors .aliyun.com /docker-ce/linux/centos/docker-ce .repo -O /etc/yum .repos.d /docker-ce .repo
|
yum -y install docker-ce-18.06.3.ce-3.el7
|
systemctl enable docker && systemctl start docker
|
sudo mkdir -p /etc/docker
|
注意:如果是公司内部的,需要把公司的harbor加进来!!!{ "insecure-registries":["172.20.246.14:8858"] }
sudo tee /etc/docker/daemon .json <<- 'EOF'
{
"exec-opts" : [ "native.cgroupdriver=systemd" ],
"insecure-registries" :[ "172.20.246.14:8858" ]
}
EOF
|
sudo systemctl daemon-reload
|
sudo systemctl restart docker
|
当看到以下信息的时候表示安装成功