Explanation: The 'docker-compose ps' command lists all running services in a Docker Compose setup.
Dear candidates you will find MCQ questions of Docker here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
Explanation: The 'docker-compose ps' command lists all running services in a Docker Compose setup.
Explanation: 'Volumes' are used in Docker Compose to mount external files or directories into containers.
Explanation: The 'run' service type is not a valid service type in Docker Compose.
Explanation: In Docker Compose, the 'networks' key is used to define network settings for a service.
Explanation: By default, Docker Compose uses the 'bridge' network mode for services.
Explanation: The 'docker-compose exec' command is used to execute commands inside a running Docker Compose container.
Explanation: You can configure a custom Docker Compose file name using the '--file' flag.
Explanation: The 'docker-compose ps' command shows the status of all services in a Docker Compose setup.
Explanation: The 'docker-compose build' command rebuilds the services defined in the Compose file.
Explanation: The 'docker-compose down --volumes' command removes stopped containers, networks, and volumes created by Docker Compose.