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