What does the 'docker ps' command do?

QuestionsQuestions8 SkillsProYour First Docker LabAug, 17 2025
0394

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

0 Comments

no data
Be the first to share your comment!