docker compose list all running containers code example
Example 1: how to get list of docker containers
1. docker container ls -a
2. docker ps -a
Example 2: list dockers docker compose
docker-compose ps
1. docker container ls -a
2. docker ps -a
docker-compose ps