docker run hangs code example
Example 1: docker run restart always
$ docker run --restart=always redis
Example 2: docker display stopped containers
#display all containers
docker ps -a
$ docker run --restart=always redis
#display all containers
docker ps -a