docker cp

Copy files to/from containers

medium risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
What it does

Copies between a container and the host.

Examples
docker cp web:/etc/nginx/nginx.conf .Copy a file out · explain & risk-check →
docker cp ./app.conf web:/etc/app.confCopy a file in · explain & risk-check →
Related
docker exec
Open the full explainer →More in Docker & Containers

Reference text is hand-written and may be incomplete — check man docker for your version. Test destructive commands on a non-production system first.