Docker daemon can’t starting after system reboot

centos7docker

I installed Docker according to this manual and triggered the following command:

sudo chkconfig docker on

Everything works great, but when I reboot the system, Docker daemon is not running.

I also tried this command, but without success.

sudo systemctl enable docker

My OS is CentOS Linux release 7.1.1503 and Docker version 1.8.2

How do I ensure guaranteed start of Docker after a reboot??

Best Answer

I solved my problem.

I had SocketGroup=docker configuration in /usr/lib/systemd/system/docker.socket file, but at Docker startup time a group docker did not exist because I manage my Linux identities (users, groups, etc) with FreeIPA and this starts after Docker.

Solution

Add this line to /etc/group file:

docker:x:GID:

GID is a same number as is configured in FreeIPA for group docker.

Related Topic