Ramkumar D
Ramkumar D

Reputation: 9888

how to copy file from my localhost to running container?

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

Answers (1)

itiic
itiic

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

Related Questions