A

Admin • 828.43K Points
Coach

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

  • (A) To execute a command as a specific user in a running container
  • (B) To execute a command as the root user
  • (C) To execute a command in all containers
  • (D) To execute a command in a stopped container
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category Docker
  • Hashtags:

Explanation by: Admin
The 'docker-compose exec --user' command executes a command as a specific user in a running container.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.