docker container status restarting (1) code example
Example 1: docker run restart always
$ docker run --restart=always redis
Example 2: docker restart container
docker restart CONTAINER_ID
$ docker run --restart=always redis
docker restart CONTAINER_ID