SpinTheMic
Pro

Interview practice question

Passing a secret to a container safely in development

Cloud & DevOps · Docker · Beginner

Your app needs an API key when running locally in Docker. How do you pass it without leaking it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Don't put in Dockerfile or image.
  • .env file excluded from Git.
  • --env-file or Compose env_file.
  • Compose secrets mounted as files.
  • Use dev-only keys.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics