How to list just container names of all Docker containers
Also see:
- How to list just container ID of all Docker containers
- How to list just container names & IP address(es) of all Docker conatiners
Use
docker ps --format "{{.Names}}"
Example output:
$ docker ps --format "{{.Names}}"
flamboyant_cohen
lucid_shtern
gitlab-techoverflow_gitlab_1