Docker

Loading an env file in Docker

DockerENV & ARGRuntime envintermediate

What this snippet does

--env-file reads KEY=VALUE pairs from disk, keeping secrets out of shell history.

Expected output

connected to postgres://db:5432/app

Why practise typing this

Typing env & arg code builds muscle memory for the symbols and indentation Docker uses most, which prose-based typing tests never cover. DevType measures your words per minute and accuracy on this snippet and tracks the individual characters you mistype, so later lessons can target them.

More Docker practice

Browse all Docker snippets →