Restart Policies

Difficulty: Beginner

Question

What are the different Docker restart policies?

Answer

`no` (default), `on-failure` (only if exit code non-zero), `always` (always restarts), `unless-stopped` (restarts unless manually stopped).

Concepts covered

Restart, Always, Unless-stopped