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
πŸ’¬ Discuss
βœ… Correct Answer: (A) To execute a command as a specific user in a running container
Explanation: The 'docker-compose exec --user' command executes a command as a specific user in a running container.
Explanation by: Praveen Singh
The 'docker-compose exec --user' command executes a command as a specific user in a running container.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
110
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
81%
Success Rate