A

Admin • 833.24K Points
Coach

Q. What is the purpose of the 'docker-compose exec' command?

  • (A) To execute a command in a running service container
  • (B) To start a new container
  • (C) To build Docker images
  • (D) To stop a running container
  • Correct Answer - Option(A)
  • Views: 32
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin

The 'docker-compose exec' command runs a command in a running service container. For example, 'docker-compose exec web bash'.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.