当前位置:   article > 正文

docker搭建

docker搭建

docker
#安装
uname -r 3.10.0-327.el7.x86_64
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
systemctl start docker
systemctl enable docker
#镜像加速
mkdir -p /etc/docker
tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://pthx0mbz.mirror.aliyuncs.com"]
}
EOF
systemctl daemon-reload
systemctl restart docker
#删除
yum remove docker-ce
rm -rf /var/lib/docker

转载于:https://www.cnblogs.com/hxqxiaoqi/p/10647190.html

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/300480
推荐阅读
相关标签
  

闽ICP备14008679号