docker show credi code example
Example 1: docker ps only show names
docker ps --format '{{.Names}}'
Example 2: docker list containers
# List history of containers
$ docker ps -a
docker ps --format '{{.Names}}'
# List history of containers
$ docker ps -a