Skip to content

Glossary: Docker Basics

Secret

Also written: secrets

A setting that must stay private, such as a database password, API key or token. Keep secrets out of Dockerfiles and images and pass them at run time from a file listed in `.gitignore` and `.dockerignore`.

Where the book teaches it

Related terms

Environment variable.dockerignore.gitignore