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.
SubscribeRelated
--live-restoredocker update --restartdocker container attachsystemdsupervisor