docker process stop & restart code example
Example 1: docker run restart always
$ docker run --restart=always redis
Example 2: how to stop docker
systemctl stop docker.service
#(OR)
systemctl stop docker
# it will start docker
$ docker run --restart=always redis
systemctl stop docker.service
#(OR)
systemctl stop docker
# it will start docker