docker ps --format 'table {{.Names}}\t{{.Ports}}'

Category: Docker

docker ps --format 'table {{.Names}}\t{{.Ports}}'

List containers with name and ports only

Renders the container table with just names and port mappings via Go templates, narrow enough for wide screens. Fields like {{.Status}} and {{.Image}} are available. Omit table for headerless lines.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.