Docker Concepts

Runtime application configuration

Inject non-sensitive settings at startup; defaults can be supplied by ENV. Validate values in the application. Environment variables are not a dedicated secret store. Restarting the same existing container does not replace its configured environment.

Formal Syntax & Structure

docker syntaxdocker
docker run -e NAME=VALUE IMAGE

Parameters & Attributes

NameTypeDescription
NAMEstringApplication setting name.
VALUEstringNon-sensitive setting value.
IMAGEstringReviewed local image.

Working Example

Example Snippetdocker
docker run --rm --pull=never --network none -e APP_MODE=test bm-v11-environment-config:lab
Docker Reference