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