Skip to content

Instantly share code, notes, and snippets.

@rafaeltuelho
Created March 11, 2021 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaeltuelho/aa7c284a19db3f632219734aa0e57541 to your computer and use it in GitHub Desktop.
Save rafaeltuelho/aa7c284a19db3f632219734aa0e57541 to your computer and use it in GitHub Desktop.
Copy files to a docker volume
docker container create --name dummy -v myvolume:/root hello-world
docker cp c:\myfolder\myfile.txt dummy:/root/myfile.txt
docker rm dummy

ref: moby/moby#25245 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment