【安装】安装docker、并初始化
2022年09月09日 05:38:20 作者:Jiaozn 分类:Docker 评论(0)#安装docker
curl -ssL https://get.docker.com |sh
#配置docker
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": ["https://4hsys9ja.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
#关闭selinux
sed -i '/SELINUX/s/enforcing/disabled/' /etc/sysconfig/selinux
sed -i '/SELINUX/s/enforcing/disabled/' /etc/selinux/config
setenforce 0
#重启
init 6
systemctl enable docker
systemctl restart docker
#拉取centos7镜像
docker pull ansible/centos7-ansible
除非注明,发表在“Jiaozn的博客”的文章『【安装】安装docker、并初始化』版权归Jiaozn所有。
转载请注明出处为“本文转载于『Jiaozn的博客』原地址https://jiaozn.com/reed/782.html”
评论
发表评论