Docker无法启动异常
错误信息:
[root@localhost ~]# systemctl status docker
● docker.service - Docker Application Container Engine
Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2019-02-17 10:34:15 EST; 48s ago
Docs: http://docs.docker.com
Process: 6732 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: 6732 (code=exited, status=1/FAILURE)
Feb 17 10:34:13 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
Feb 17 10:34:13 localhost.localdomain dockerd-current[6732]: time="2019-02-17T10:34:13.914900214-05:0...d"
Feb 17 10:34:13 localhost.localdomain dockerd-current[6732]: time="2019-02-17T10:34:13.924772836-05:0...7"
Feb 17 10:34:15 localhost.localdomain dockerd-current[6732]: time="2019-02-17T10:34:15.030861372-05:00"...
Feb 17 10:34:15 localhost.localdomain dockerd-current[6732]: Error starting daemon: SELinux is not su...e)
Feb 17 10:34:15 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, ...URE
Feb 17 10:34:15 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Feb 17 10:34:15 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
Feb 17 10:34:15 localhost.localdomain systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
废话不多说,直接上解决方案:
vi /etc/sysconfig/selinux 把selinux后面的改为disabled,重启一波机器,再重启docker就可以了