I am not sure what I am doing wrong with this. I am in the process of converting our python apps into Docker containers. During this development process I want to confirm everything is working correctly by reviewing the output logs, files, etc on my Windows machine however I cannot get volumes working so I can create or move files on the container and then have them be visible on the host Windows machine for A. persistance and B. review.
For example,
My DockerFile – https://pastebin.com/MQihyg36
My build script
docker build . --tag "0005" --no-cache
My start script
docker run --rm -it -v /x/project/0005/data:/app/data 0005
I can see the files in ./app/data
when the container gets launched. So the paths are correct, but if I run touch 1234.txt
in the docker container, I cannot see it on the windows PC. Vice versa if after I launch the container and then I make a file in X:Project005data1234.txt
in Windows, it does not show up in the container until I restart it.