I'm creating a dockerfile and I have a copy command like this:
COPY foo.conf /root/.folder/foo.conf
Then I run the image like this:
docker run -t -i -v $PWD/data:/root/.folder
On my local machine I can see data, but without foo.conf, even inside my container the folder is empty. if I don't use the -v, I can find the foo.conf in my container.