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 IMAGEParameters & Attributes
| Name | Type | Description |
|---|---|---|
| NAME | string | Application setting name. |
| VALUE | string | Non-sensitive setting value. |
| IMAGE | string | Reviewed local image. |
Working Example
Example Snippetdocker
docker run --rm --pull=never --network none -e APP_MODE=test bm-v11-environment-config:lab