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
list-container-names.sh
docker ps --format "{{.Names}}"
Example output:
example-output.sh
$ docker ps --format "{{.Names}}"
flamboyant_cohen
lucid_shtern
gitlab-techoverflow_gitlab_1
Check out similar posts by category:
Docker
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow