docker:containers:show:all
List all docker containers (running and stopped).
$ docker ps --all
try on your machine
The docker ps
command is used to list the currently running Docker containers. By default, it lists only the active containers. However, when you add the --all
flag, as in docker ps --all
, it will show all containers, including the ones that are not currently running.
The output of this command will display the following information for each container:
- CONTAINER ID: The unique identifier of the container.
- IMAGE: The image used to create the container.
- COMMAND: The command that was executed when the container was started.
- CREATED: The time when the container was created.
- STATUS: The current status of the container.
- PORTS: The exposed ports of the container.
- NAMES: The name assigned to the container.
The docker ps --all
command is often used to get a comprehensive view of all the containers on a Docker host, including both running and stopped containers.
This explanation was created by an AI. In most cases those are correct. But please always be careful and
never run a command you are not sure if it is safe.