Docker Service Failed To Start Issue On CentOS 7

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

Docker Service Failed To

Docker Service Start to Failed In Linux:

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.json file in ls /etc/docker/ if you don’t find these files just create it.

Put these lines in daemon.json

docker failed service

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

Try 2: If it does not work at all, you can also check if there is aufs module that 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.

failed to start 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

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment