docker run container restart always code example
Example 1: docker run restart always
$ docker run --restart=always redis
Example 2: docker why my container start on reboot
docker update --restart=no $(docker ps -a -q)
$ docker run --restart=always redis
docker update --restart=no $(docker ps -a -q)