Home DevOps Docker Service Failed To Start Issue On CentOS 7

Docker Service Failed To Start Issue On CentOS 7

failed docker service

Docker Service Start to Failed In Linux

Docker Service Failed To start, I just installed Docker on Centos machine when I start the docker service. It’s not getting started.

systemctl start docker

Error : “ Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.”

Check Out : How To Add Docker Host To Rancher Server In Linux

Method 1 : try this

You need to remove the Docker directory

rm -rf /var/lib/docker/

Then try to locate daemon.josn file in ls /etc/docker/ if you don’t find these file, just create it.

Put these lines in daemon.json

Now start the Docker Service

Check Out : Docker : Can’t Remove ‘/var/lib/docker/containers’ : Device or Resource Busy

systemctl start docker && systemctl enable docker

Method 2 : If method 1 does not work in your case then try this.

Try 1 :

Try to remove docker.sock from /var/run/docker.sock

If it does not work, try the below steps

Try 2 :

If it does not work at all, you can also check if there is aufs module is missing in /var/log/syslog after upgrading the kernel.

You can find the module using find /lib -iname ‘*aufs*’ and boot Linux using that kernel , Load the module modprobe aufs and start the docker service.

Check Out :  Download Specific Version of Any image

Try 3 :

I found the error in journalctl -u docker.service

Error starting daemon: SELinux is not supported with the overlay2 graph driver on this kernel. Either boot into a newer kernel or disable selinux in docker.

Now I just simply disable the Selinux as it does not support or you may boot with another kernel.

vim /etc/sysconfig/selinux

Changed it to Selinux= disabled

then reboot the system to make it permanent.

Now start the Docker service

systemctl start docker

systemctl status docker

Check Out :  Backup of a Container

You’re done

Leave a Reply

Notify of