G

Gopal Sharma • 38.32K Points
Coach

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
  • Correct Answer - Option(A)
  • Views: 13
  • Filed under category Docker

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics