how to restart docker code example
Example 1: how to restart docker linux
$ sudo systemctl start docker
Example 2: docker restart
sudo systemctl restart docker
Example 3: docker run restart always
$ docker run --restart=always redis
Example 4: docker restart container
docker restart CONTAINER_ID
Example 5: docker --restart example
# To limit retart attempt, add [:int]
docker run -d --restart=on-failure:3