How to keep docker daemon (service) to run without stopping unexpectedly

TL;DR

I added a cronjob to check if the docker daemon is running or not -> if not then restart the service. It works like a champ and I never met the issue again.

* * * * * docker info > /dev/null || systemctl restart docker

Please note that the cronjob should belong to user that has permission to restart docker service, better run it with root user.

Related issue: https://github.com/docker/machine/issues/1458

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x