centos install docker

In view of the fact that several sources given in the book cannot be accessed, use the default source to install
yum -y install docker.io

then start docker

service docker start

Failed to start, error

Error starting daemon: SELinux is not supported with the overlay2

Modify the configuration file and change the support for selinux to 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

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324676715&siteId=291194637