About
The copy command copies files/folders between a container and the local filesystem and vice-versa.
Example
- From local system to container
docker cp foo.txt mycontainer:/foo.txt
- From container to local system
docker cp mycontainer:/foo.txt foo.txt