CentOS7安装docker

CentOS7安装docker

安装docker

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

systemctl enable docker && systemctl start docker

配置docker镜像源

vim /etc/docker/daemon.json

{

“registry-mirrors”: [ “https://dockerproxy.com“, “https://hub-mirror.c.163.com“, “https://mirror.baidubce.com“, “https://ccr.ccs.tencentyun.com” ],

“exec-opts”: [“native.cgroupdriver=systemd”]

}

systemctl restart docker

Comments

No comments yet. Why don’t you start the discussion?

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

证明你是人: 10   +   8   =