天天看点

docker安装后启动报错:Failed to start Docker Application Container Engine

详细报错如下

[root@localhost ~]# systemctl status docker.service
● docker.service - Docker Application Container Engine
   Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2021-02-04 04:21:34 EST; 51s ago
     Docs: http://docs.docker.com
  Process: 2320 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/dock
er-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json $OPT
IONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (c
ode=exited, status=1/FAILURE)
 Main PID: 2320 (code=exited, status=1/FAILURE)

Feb 04 04:21:32 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
Feb 04 04:21:32 localhost.localdomain dockerd-current[2320]: time="2021-02-04T04:21:32.963869323-05:00" level=...nd"
Feb 04 04:21:32 localhost.localdomain dockerd-current[2320]: time="2021-02-04T04:21:32.971691350-05:00" level=...25"
Feb 04 04:21:33 localhost.localdomain dockerd-current[2320]: time="2021-02-04T04:21:33.982115445-05:00" level=war...
Feb 04 04:21:34 localhost.localdomain dockerd-current[2320]: Error starting daemon: SELinux is not supported w...se)
Feb 04 04:21:34 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Feb 04 04:21:34 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Feb 04 04:21:34 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
Feb 04 04:21:34 localhost.localdomain systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.      
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 Thu 2021-02-04 22:38:55 EST; 6min ago
     Docs: http://docs.docker.com
  Process: 5093 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-pro
file=/etc/docker/seccomp.json $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exi
ted, status=1/FAILURE)
 Main PID: 5093 (code=exited, status=1/FAILURE)

Feb 04 22:38:54 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...
Feb 04 22:38:54 localhost.localdomain dockerd-current[5093]: time="2021-02-04T22:38:54.073301553-05:00" level=warning msg="could not change group /... found"
Feb 04 22:38:54 localhost.localdomain dockerd-current[5093]: time="2021-02-04T22:38:54.077368772-05:00" level=info msg="libcontainerd: new containe...: 5100"
Feb 04 22:38:55 localhost.localdomain dockerd-current[5093]: time="2021-02-04T22:38:55.085629319-05:00" level=warning msg="overlay2: the backing xfs files...
Feb 04 22:38:55 localhost.localdomain dockerd-current[5093]: Error starting daemon: SELinux is not supported with the overlay2 graph driver on this...=false)
Feb 04 22:38:55 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE
Feb 04 22:38:55 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.
Feb 04 22:38:55 localhost.localdomain systemd[1]: Unit docker.service entered failed state.
Feb 04 22:38:55 localhost.localdomain systemd[1]: docker.service failed.
Hint: Some lines were ellipsized, use -l to show in full.      

解决方法

使用下面的命令进行修改对应的文件的红色地方,然后按esc后输入:wq进行保存退出      
vi /etc/sysconfig/docker      

继续阅读