1. 程式人生 > >yum安裝docker報錯

yum安裝docker報錯

在centos版本 7.3中用yum安裝後報錯出現 Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot in...led=false) 根據日誌得知,此linux的核心中的SELinux不支援 overlay2 graph driver ,解決方法有兩個,要麼啟動一個新核心,要麼就在docker裡禁用selinux,--selinux-enabled=false重新編輯docker配置檔案:

# vim /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

如上改為--selinux-enabled=false後儲存,重啟docker,搞定!