Config From a File
Load a container's environment from a reviewable env file.
A intermediate Docker challenge worth 10 points. Solve it hands-on in a real Docker environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: The platform team standardized on env files — config in one reviewable place instead of 12 -e flags nobody remembers.
The approved config is at /root/app.env; config-api was started with no config at all.
Tasks:
- Recreate
config-api(imagealpine, commandsleep infinity) loading its environment from that file - Verify with
docker inspectthat all three variables landed
Commands to learn: docker run --env-file, docker inspect (Config.Env)
Run check when done.