联系我们:416326801#qq.com(#改成@)

img1

Linux安装Docker

137 Views 标签: Linux yum

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 makecache fast
yum -y install docker-ce
service docker start
vi /etc/docker/daemon.json
{
  "registry-mirrors": ["https://*****.mirror.aliyuncs.com"]
}
systemctl daemon-reload
systemctl restart docker
yum源
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# ll
total 44
-rw-r--r--. 1 root root 2573 Mar 21  2017 CentOS-Base.repo
-rw-r--r--. 1 root root 1664 Nov 30  2016 CentOS-Base.repo.backup
Docker加速
[root@localhost ~]# cat /etc/docker/daemon.json 
{
  "registry-mirrors": ["https://*****.mirror.aliyuncs.com"]
}

如果觉得我的文章对您有用,打赏一下呗.

wxpay.png