What are the commands to stop, start, and restart a container?

0111

Here are the commands to stop, start, and restart a Docker container:

  1. Stop a container:

    docker stop CONTAINER_ID_OR_NAME
  2. Start a container:

    docker start CONTAINER_ID_OR_NAME
  3. 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.

0 Comments

no data
Be the first to share your comment!