docker container ls

List containers

Usage

docker container ls [OPTIONS]

Description

See docker ps for more information.

Options

OptionShortDefaultDescription
--all-aShow all containers (default shows just running)
--filter-fFilter output based on conditions provided
--formatFormat output using a custom template: 'table': Print output in table format with column headers (default) 'table TEMPLATE': Print output in table format using the given Go template 'json': Print in JSON format 'TEMPLATE': Print output using the given Go template. Refer to https://docs.docker.com/go/formatting/open_in_new for more information about formatting output with templates
--last-n-1Show n last created containers (includes all states)
--latest-lShow the latest created container (includes all states)
--no-truncDon't truncate output
--quiet-qOnly display container IDs
--size-sDisplay total file sizes