「物联网」Centos7 64位docker 部署

$ yum install docker-io
$ service docker start
#如果启动失败,提示SELinux is not supported
$ vi /etc/sysconfig/docker
#修改下面这一句
# Modify these options if you want to change the way the docker daemon runs

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

#修改为
# 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

你可能感兴趣的:(「物联网」Centos7 64位docker 部署)