πŸ“Š Docker
Q. What is the purpose of the 'docker-compose restart' command?
  • (A) To restart all containers defined in a docker-compose.yml file
  • (B) To rebuild Docker images
  • (C) To stop and remove containers
  • (D) To push images to Docker Hub
πŸ’¬ Discuss
βœ… Correct Answer: (A) To restart all containers defined in a docker-compose.yml file

Explanation: The 'docker-compose restart' command restarts all running containers defined in the 'docker-compose.yml' file.

Explanation by: Gopal Sharma
The 'docker-compose restart' command restarts all running containers defined in the 'docker-compose.yml' file.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
63
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
97%
Success Rate