πŸ“Š Docker
Q. How do you assign a secret to a service in Docker Compose?
  • (A) Under the `volumes` key
  • (B) Under the `env_file` key
  • (C) Under the `secrets` key inside the service
  • (D) With the `command` key
πŸ’¬ Discuss
βœ… Correct Answer: (C) Under the `secrets` key inside the service

Explanation: You assign secrets under the `secrets` key inside a service definition.

Explanation by: Mr. Dubey
You assign secrets under the `secrets` key inside a service definition.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
37
Total Visits
πŸ“½οΈ
6 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
91%
Success Rate