Docker ps: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 19: Line 19:
=Options=
=Options=


==-a==
==-a, --all==


Lists all containers (stopped and running).
Lists all containers (stopped and running).
==-q, --quiet==
Only display the numeric container IDs.

Revision as of 02:57, 20 November 2017

External

Internal

Overview

List running containers. The output contains:

  • the container ID and name(s)
  • the image the container was created from
  • the command
  • the container's status
  • when long ago was created
  • what ports it uses

Options

-a, --all

Lists all containers (stopped and running).

-q, --quiet

Only display the numeric container IDs.