标签:nload cli version yum 安装 删除 repos 开机自启 上下
官方文档: https://docs.docker.com/install/linux/docker-ce/centos/#set-up-the-repository
sudo yum remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine
yum install -y yum-utils device-mapper-persistent-data lvm2
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum list docker-ce --showduplicates | sort -r
yum -y install docker-ce-18.06.1.ce-3.el7
systemctl start docker
systemctl enable docker
docker version
vi /etc/docker/daemon.json
然后配置一下内容:
{
"registry-mirrors": [
"https://kfwkfulq.mirror.aliyuncs.com",
"https://2lqq34jg.mirror.aliyuncs.com",
"https://pee6w651.mirror.aliyuncs.com",
"https://registry.docker-cn.com",
"http://hub-mirror.c.163.com"
],
"dns": ["8.8.8.8","8.8.4.4"]
}
systemctl restart docker
标签:nload cli version yum 安装 删除 repos 开机自启 上下
原文地址:https://www.cnblogs.com/ghh520/p/13192368.html