centos下安装docker

1、centos下安装
yum update
yum install docker
2、问题

"could not change group /var/run/docker.sock to docker: group docker not found":
sudo groupadd docker
sudo usermod -aG docker $USER
 Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel...abled=false)
编辑 /etc/selinux/config 文件,并将 SELINUX=enforcing 修改为 SELINUX=disabled,然后重启系统

3、其他仍不启动问题
直接yum update解决。

posted @ 2023-08-08 16:57  zhaogaojian  阅读(14)  评论(0编辑  收藏  举报