Revanth
Revanth

Reputation: 1

Docker Containers are not coming up after host reboot

Docker containers are not coming up after host crash or reboot. We see volume unmount errors in docker logs. This issue is not happening frequently it is happening sporadically.

We had to delete containers and recreate them to make it work which is impacting our environment. Please let us know if there is any way to avoid this situation.

Upvotes: 0

Views: 724

Answers (2)

Revanth
Revanth

Reputation: 1

This is resolved after enabling selinux on host.

Upvotes: 0

Rafaf Tahsin
Rafaf Tahsin

Reputation: 8566

Use --restart unless-stopped option in docker run command.

For more information Restart policies (--restart)

Upvotes: 1

Related Questions