centos 安装docker

鉴于书上给的几个源均访问不了,使用的默认源安装
yum -y install docker.io

然后启动docker

service docker start

启动失败,报错

Error starting daemon: SELinux is not supported with the overlay2

修改配置文件,对selinux的支持改为false

# /etc/sysconfig/docker

# Modify these options if you want to change the way the docker daemon runs

OPTIONS='--selinux-enabled=false  --log-driver=journald --signature-verification=false'
if [ -z "${DOCKER_CERT_PATH}" ]; then
    DOCKER_CERT_PATH=/etc/docker
fi

猜你喜欢

转载自www.cnblogs.com/zhangdengq/p/8910000.html