Fix: Standardize using "docker container ls" command when referencing listing containers (#5787)

pull/5795/head
Anthony Pun 7 months ago committed by GitHub
parent 1b9628f826
commit 6b552b584a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      src/data/roadmaps/docker/content/108-running-containers/index.md

@ -16,7 +16,7 @@ This starts a new container and maps the host's port 8080 to the container's por
## Listing Containers ## Listing Containers
To list all running containers, use the `docker ps` command. To view all containers (including those that have stopped), use the `-a` flag: To list all running containers, use the `docker container ls` command. To view all containers (including those that have stopped), use the `-a` flag:
```bash ```bash
docker container ls -a docker container ls -a
@ -30,7 +30,7 @@ To access a running container's shell, use the `docker exec` command:
docker exec -it CONTAINER_ID bash docker exec -it CONTAINER_ID bash
``` ```
Replace `CONTAINER_ID` with the ID or name of your desired container. You can find this in the output of `docker ps`. Replace `CONTAINER_ID` with the ID or name of your desired container. You can find this in the output of `docker container ls`.
## Stopping Containers ## Stopping Containers

Loading…
Cancel
Save