docker ps get only container name code example Example: docker ps only show names docker ps --format '{{.Names}}'