「物联网」Centos7 64位docker 部署
2018-07-20 本文已影响0人
SmartKarren
$ 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