failed docker service

Docker Service Start to Failed In Linux

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 :

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 it must be started.

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 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

Sponsored

LEAVE A REPLY

Please enter your comment!
Please enter your name here