docker ps details code example
Example 1: docker ps only show names
docker ps --format '{{.Names}}'
Example 2: check docker images
docker images [OPTIONS] [REPOSITORY[:TAG]]
docker ps --format '{{.Names}}'
docker images [OPTIONS] [REPOSITORY[:TAG]]