A

Admin • 825.56K Points
Coach

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

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.