Reputation: 9888
I have started a container from our local docker registry. I don't have login access to our docker registry or docker host. I need to copy files from my localhost or laptop to running container.
Upvotes: 1
Views: 577
Reputation: 3712
Try
docker cp /host/path/target <containerId>:/file/path/within/container
and in opposite way
docker cp <containerId>:/file/path/within/container /host/path/target
Upvotes: 2