get docker container id code example
Example 1: docker ps only show names
docker ps --format '{{.Names}}'
Example 2: docker check running containers
docker ps -a
Example 3: list stopped containers
docker ps --filter "status=exited"
docker ps --format '{{.Names}}'
docker ps -a
docker ps --filter "status=exited"