This message was deleted.
# rancher-desktop
a
This message was deleted.
h
Mounting a volume with docker run or compose into a container does not copy data, just lets you access a local folder as a folder inside the container. https://docs.docker.com/engine/reference/commandline/run/#mount-volume--v---read-only
b
Copy code
test-mock:
  build: test-mock
  volumes:
    - ./files:/opt/wiremock/__files
  ports:
    - 8090:8080
# ls -l __files/
total 0
still I cannot see any files.
h
left is local, right is the path in the container so
Copy code
docker run -v /tmp:/container_tmp busybox ls /container_tmp
Maps /tmp on the local machine to /container_tmp inside the container. This probably should be posted on StackOverflow, etc since it's not RD-specific
am.. I am not sure it does not depends on Rancher Desktop
h
I'm on a Mac and mount volumes ok. Related to that ^^^ issue, I posted this earlier and didn't get any reply.
b
yeah this is similar I guess so.