Copy In, Copy Out
Move files between a running container and the host with docker cp.
A beginner Docker challenge worth 3 points. Solve it hands-on in a real Docker environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: The reports container is redeployed tonight. Before that:
Tasks:
- Back up
/var/reports/q2.csvfrom insidereportsto/root/backup/q2.csv - Hotfix the config: copy
/root/fix/config.iniINTO the container at/etc/app/config.ini(create/etc/appinside it first withdocker exec)
Commands to learn: docker cp (both directions), docker exec mkdir
Run check when done.