Skip to content
masterclass Buddy

Docker · Option

restart

Docker restart policies control whether containers start again after they exit or when the Docker daemon restarts. Set one with docker run --restart or change an existing container with docker update --restart.

Last updated

Syntax

docker run --restart <policy> [OPTIONS] IMAGE [COMMAND] [ARG...]
docker update --restart <policy> CONTAINER [CONTAINER...]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • --live-restore
  • docker update --restart
  • docker container attach
  • systemd
  • supervisor

Source: Start containers automatically. Checked 2026-11-03.