I have docker-compose file with volumes section for given container:

 image: video-streaming
  context: ./video-streaming
  dockerfile: Dockerfile-dev
 container_name: video-streaming
    - /tmp/history/npm-cache:/root/.npm:z

I'm running docker on windows and image is linux based. When I enter container and add file to /root/.npm and then close the container and run it again then the file is still there so this volume works. But the question is where can I find it's location on Windows host?

When I enter WSL and type cd /tmp there is no directory named history but when I enter my docker container and navigate to /root/.npm I can see files there.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.