Copy files from host to container.
Section: Containers
Copy files into a container
bash
bash
docker cp ./config.yml web:/etc/myapp/config.ymlExplanation
Useful for debugging or quick experiments.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Containers