Here are the commands to stop, start, and restart a Docker container:
-
Stop a container:
docker stop CONTAINER_ID_OR_NAME -
Start a container:
docker start CONTAINER_ID_OR_NAME -
Restart a container:
docker restart CONTAINER_ID_OR_NAME
Replace CONTAINER_ID_OR_NAME with the actual ID or name of the container you want to manage.
