Search⌘ K

Restart Mode

Explore how Docker restart modes influence container behavior after stopping or host reboot. Learn to use restart options like always and unless_stopped to manage uptime effectively while maintaining control over container stopping actions.

We'll cover the following...

When creating a container, you have the choice to set a restart mode. It tells Docker what to do when a container stops. A restart mode is set with the --restart switch. ...