How do you list all running containers that were created based on running Docker Compose?
Experience Level: Junior
Tags: Docker Compose
Answer
Run the following command:
docker-compose ps
Related Docker Compose job interview questions
How do you pass an environment variable to a Docker Compose service container?
Docker Compose JuniorHow do you display images of all running containers that were created based on running Docker Compose?
Docker Compose JuniorHow do you stop Docker Compose services that were previously executed in a detached mode and also delete all their containers?
Docker Compose JuniorHow do you stop Docker Compose services that were previously executed in a detached mode?
Docker Compose JuniorHow do you run services from a Docker Compose file in a detached mode?
Docker Compose Junior