restart docker command code example Example 1: how to restart docker linux $ sudo systemctl start docker Example 2: docker restart sudo systemctl restart docker