docker show all container name only code example
Example 1: docker ps only show names
docker ps --format '{{.Names}}'
Example 2: docker list containers
# List curently active containers
$ docker ps
docker ps --format '{{.Names}}'
# List curently active containers
$ docker ps