docker:containers:list_containers
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docker:containers:list_containers [2021/09/24 12:28] – peter | docker:containers:list_containers [2022/09/19 14:25] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Docker - Containers - List Containers ====== | ====== Docker - Containers - List Containers ====== | ||
- | ====== List all Docker containers by their ID ====== | + | ===== List all Docker containers by their ID ===== |
<code bash> | <code bash> | ||
Line 24: | Line 24: | ||
---- | ---- | ||
- | ====== List all containers by their size ====== | + | ===== List all containers by their size ===== |
<code bash> | <code bash> | ||
Line 34: | Line 34: | ||
<code bash> | <code bash> | ||
docker container ls -s | docker container ls -s | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | CONTAINER ID | ||
+ | 8e38cc315dc0 | ||
</ | </ | ||
---- | ---- | ||
- | ====== Lst all containers by their name and status | + | ===== List all containers by their name and status ===== |
<code bash> | <code bash> | ||
docker container ls --format 'table {{.Names}}\t{{.Status}}' | docker container ls --format 'table {{.Names}}\t{{.Status}}' | ||
+ | </ | ||
+ | |||
+ | returns: | ||
+ | |||
+ | <code bash> | ||
+ | NAMES STATUS | ||
+ | sad_varahamihira | ||
</ | </ | ||
---- | ---- | ||
docker/containers/list_containers.1632486522.txt.gz · Last modified: 2021/09/24 12:28 by peter