Docker restart policies Explained

What Docker restart policies does, with an example.

Published November 10, 2026

Docker restart policies control whether a container automatically restarts after it stops or the Docker daemon restarts.

Key points

  • Part of the standard Docker CLI used for building, running, and managing containers

Example

docker run --restart unless-stopped myapp
More General articles