Docker service start failed

Only this command helped me to get the reason of this error:

dockerd

In the output I saw: Your Linux kernel version 2.6.32-042stab127.2 is not supported for running docker. Please upgrade your kernel to 3.10.0 or newer.


I had a similar issue. This was how I fixed it permanently:

  • Delete everything in /var/lib/docker. This will delete existing container and images:
rm -rf /var/lib/docker
  • Then configure your daemon to use the "overlay" storage driver. Set the following flags in /etc/docker/daemon.json. If the file doesn't exist, just create it, and add the contents below:
{
    "graph": "/mnt/docker-data",
    "storage-driver": "overlay"
}

Now start Docker normally again and all should work fine and always.

See Start automatically at system boot.


You only need to reboot the server and check if your daemon.json file is correct.

By removing /etc/docker you will loose all Images and data.

you can check logs with

journalctl -u docker.services

Reboot server

sudo reboot

systemctl daemon-reload && systemctl enable docker && systemctl start docker

This worked for me.

Tags:

Docker

Centos7