The docker ps command is used to list the running Docker containers on your system. It provides information about each container, including:
- CONTAINER ID: A unique identifier for the container.
- IMAGE: The name of the image from which the container was created.
- COMMAND: The command that is being executed in the container.
- CREATED: The time when the container was created.
- STATUS: The current status of the container (e.g., running, exited).
- PORTS: The ports that are exposed by the container.
- NAMES: The name assigned to the container.
Example:
docker ps
This command will display a table with details of all currently running containers. If you want to see all containers, including those that are stopped, you can use:
docker ps -a
