Docker Error starting daemon: SELinux is not supported
#error message
#fix error
[root@localhost ~]# systemctl start docker
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
[root@localhost ~]# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since 화 2020-04-28 08:53:09 KST; 12s ago
Docs: http://docs.docker.com
Process: 18314 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)
Main PID: 18314 (code=exited, status=1/FAILURE)
4월 28 08:53:08 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
4월 28 08:53:08 localhost.localdomain dockerd-current[18314]: time="2020-04-28T08:53:08.125412756+09:00" level=warning msg="could no...ound"
4월 28 08:53:08 localhost.localdomain dockerd-current[18314]: time="2020-04-28T08:53:08.130260018+09:00" level=info msg="libcontaine...8320"
4월 28 08:53:09 localhost.localdomain dockerd-current[18314]: Error starting daemon: SELinux is not supported with the overlay2 grap...alse)
4월 28 08:53:09 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
4월 28 08:53:09 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
4월 28 08:53:09 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
4월 28 08:53:09 localhost.localdomain systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
#fix error
[root@localhost ~]# vi /etc/sysconfig/docker
# /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
# Do not add registries in this file anymore. Use /etc/containers/registries.conf
# instead. For more information reference the registries.conf(5) man page.
# Location used for temporary files, such as those created by
# docker load and build operations. Default is /var/lib/docker/tmp
# Can be overriden by setting the following environment variable.
# DOCKER_TMPDIR=/var/tmp
# Controls the /etc/cron.daily/docker-logrotate cron job status.
# To disable, uncomment the line below.
# LOGROTATE=false
# docker-latest daemon can be used by starting the docker-latest unitfile.
# To use docker-latest client, uncomment below lines
#DOCKERBINARY=/usr/bin/docker-latest
#DOCKERDBINARY=/usr/bin/dockerd-latest
#DOCKER_CONTAINERD_BINARY=/usr/bin/docker-containerd-latest
#DOCKER_CONTAINERD_SHIM_BINARY=/usr/bin/docker-containerd-shim-latest
~
댓글
댓글 쓰기