A

Admin • 802.91K Points
Coach

Q. How can a container access a secret in Docker Swarm?

  • (A) As environment variables
  • (B) Via mounted file in /run/secrets/
  • (C) Through Docker logs
  • (D) Directly from the Docker CLI

Explanation by: Admin
Secrets are mounted into the container at `/run/secrets/<secret_name>`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.