How to copy files from Windows host to Docker container -


looking quick solution copy local files docker container on windows. wasn't able find in other stack overflow solutions.

you might call mounting local drive on windows within docker container.

open docker settings icon on taskbar:

docker popup

go 'shared drives' , enable local drive made accessible containers:

docker shared drive settings

now can add folders shared drive volume in container. using nginx example docker getting started guide:

docker run -it -v c:/users:/data nginx /bin/bash

that give shell access, can find local files (c:/users) in /data directory of nginx container.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -