标签:systemd ati registry man 环境搭建 ash store str load
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
#失败重新安装,先删除rm -f /etc/yum.repos.d/local.rep,docker-ce.repo,在重新安装
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum update -y && yum install -y docker-ce
mkdir -p /data/docker
mkdir /etc/docker
vi /etc/docker/daemon.json
{
"data-root": "/data/docker",
"storage-driver": "overlay2",
"insecure-registries": ["registry.access.redhat.com","quay.io","harbor.yn.com"],
"registry-mirrors": ["https://qc20rc43.mirror.aliyuncs.com"],
"bip": "172.7.100.1/24",
"exec-opts": ["native.cgroupdriver=systemd"],
"live-restore": true,
"log-driver": "json-file",
"log-opts": { "max-size": "100m" }
}
systemctl daemon-reload
systemctl start docker
systemctl enable docker
项目环境搭建【Docker+k8s】四 || 部署Docker环境
标签:systemd ati registry man 环境搭建 ash store str load
原文地址:https://www.cnblogs.com/kevin-ying/p/12343599.html