docker ps

Estimated reading time: 1 minute

Description

List containers

Usage

docker ps [OPTIONS]

Options

Name, shorthand Default Description
--all, -a false Show all containers (default shows just running)
--filter, -f   Filter output based on conditions provided
--format   Pretty-print containers using a Go template
--last, -n -1 Show n last created containers (includes all states)
--latest, -l false Show the latest created container (includes all states)
--no-trunc false Don’t truncate output
--quiet, -q false Only display numeric IDs
--size, -s false Display total file sizes

Parent command

Command Description
docker The base command for the Docker CLI.

Extended description

Alias for docker container ls.

chat icon Feedback? Suggestions? Can't find something in the docs?
Edit this page Request docs changes Get support
Rate this page: