09.01.2017 · Using the --restart flag on Docker run you can specify a restart policy for how a container should or should not be restarted on exit. When a restart policy is active on a container, it will be shown as either Up or Restarting in docker ps. It can also be useful to use docker events to see the restart policy in effect. docker run --always.
If I exec into the container (I am on a DDC) and kill -9 the process, it restarts, but if I do docker kill it does not. Why? How does restart interact with ...
Docker recommends that you use restart policies, and avoid using process managers to start containers. Restart policies are different from the --live-restore flag of the dockerd command. Using --live-restore allows you to keep your containers running during a Docker upgrade, though networking and user input are interrupted. Use a restart policy ...
Restart policies Using the --restart flag on Docker run you can specify a restart policy for how a container should or should not be restarted on exit.