成都网站建设设计

将想法与焦点和您一起共享

K8S集群安装之Docker环境准备

一、分别需要在运维主机与两台运算节点服务器安装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

本文题目:K8S集群安装之Docker环境准备
浏览地址:http://chengdu.cdxwcx.cn/article/geoece.html