Skip to content

Restart policies, and what unhealthy does not do

Select an icon to see what it is.

Step 5 of 6

always and unless-stopped differ after a manual stop

If you run docker stop on a container, its restart policy is ignored. When the Docker daemon next restarts, always starts that container again, but unless-stopped leaves it stopped. Both start the containers you never stopped.

POST /v1.45/containers/f2a3b4c5d6e7f809f2a3b4c5d6e7f809f2a3b4c5d6e7f809f2a3b4c5d6e7f809/stop

manual stop: the restart policy does not apply