AlmaLinux-9 安装docker

原创
09/01 19:09
阅读数 212
cat /etc/docker/daemon.json 
{
    "registry-mirrors": [
      "https://docker.mirrors.ustc.edu.cn",
      "https://mirror.ccs.tencentyun.com", 
      "https://reg-mirror.qiniu.com", 
      "https://hub-mirror.c.163.com", 
      "https://registry.docker-cn.com", 
      "https://dockerhub.azk8s.cn" 
    ]
}

 

#AlmaLinux 安装Docker - Awakenedy - 博客园
#https://www.cnblogs.com/awakenedy/articles/16418587.html

yum update -y 
dnf install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo 
dnf repolist
dnf remove podman buildah
dnf -y install docker-ce docker-ce-cli containerd.io
dnf makecache
 
systemctl enable docker 
systemctl start docker 


sudo systemctl daemon-reload
sudo systemctl restart docker

 

ps -ef|grep docker
docker info

 

关闭防火墙:

systemctl disable firewalld
systemctl stop firewalld

 

 

展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部