Skip to main content

how to set container auto-restarting with docker

auto-restarting with docker

docker run --restart=always my-container

disable auto-restarting with docker

docker update --restart=no my-container