docker restart docker daemon code example Example 1: docker restart sudo systemctl restart docker Example 2: docker restart container docker restart CONTAINER_ID