Unable to copy to Windows container ('docker cp') on Windows 10

后端 未结 2 1754
挽巷
挽巷 2021-02-18 17:33

I set up Docker for Windows on my laptop and switched from Linux Containers to Windows Containers in Docker\'s settings (which prompted a couple of restarts an

相关标签:
2条回答
  • 2021-02-18 18:07

    Edit to Vimes answer as I had a difficult time to use the --mount within my docker run commmand. The actual run command needs to be within the quotes '' starting from type...

    --mount 'type=bind,source="c:/host/folder/path/with/forward/slashes",target="C:/container/folder/path/with/forward/slashes"'

    0 讨论(0)
  • 2021-02-18 18:19

    Based on a comment by @GregorySuvalian, I understand that Windows 10 allows Hyper-V runtime only. So my workaround is to stop the container, running the docker cp command and restart the container. (I preferred this over setting up a volume, since it is just a one time operation.)

    0 讨论(0)
提交回复
热议问题