auto-restarting with docker

docker run –restart=always my-container

disable auto-restarting with docker

docker update –restart=no my-container