Docker service start after server restart Docker service start after server restart docker docker

Docker service start after server restart


I believe it is because your docker daemon and / or containers doesn't start when you reboot the machine. To achieve that you should do something as follows:

sudo systemctl enable docker

This should start the Docker daemon after you reboot the host. Then what you will have to do is when you run the service is to pass

--restart-condition:any 

Which should start your containers in case or a system failure or reboot in this case.


It's weird and i still don't know why this works. After I rebooted the machine, then I restarted docker service as well and after that i saved again the ipconfig persistent configuration without adding anything to the rules- it started working on all of the machines