docker container ls --format '{{.Names}}: {{.Image}}'

Category: Docker

docker container ls --format '{{.Names}}: {{.Image}}'

List containers with custom formatting

Renders name and image per container via Go templates, compact enough for scripts. Fields like {{.Status}} and {{.Ports}} are also available. Omit table for plain lines.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.