Replies: 1 comment 3 replies
-
volumes are always server side, so you must make sure you volume exists on the podman machine wsl instance not on your client. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Issue Description
I have followed the instructions at https://podman-desktop.io/docs/podman/accessing-podman-from-another-wsl-instance,
*note the name is wrong above and because I mount my wsl2 distribution from / rather than
/mnt
unix:///mnt/wsl
becomesunix:///wsl
.I can also run and enter a container like so
However, when I run
I get
But this directory does exist
ls $PWD/inputs/
returns the list of files in this directory.How can I mount volumes from another WSL2 instance?
Steps to reproduce the issue
Steps to reproduce the issue
https://podman-desktop.io/docs/podman/accessing-podman-from-another-wsl-instance
podman run --volume $PWD/inputs/:/data/inputs/ ubuntu:latest
Describe the results you received
Describe the results you received
I received the error message
Error: statfs /home/alexiswl/cwltool-podman-test/inputs: no such file or directory
Describe the results you expected
To run the container with the volume mounted
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
No response
Additional information
No response
Beta Was this translation helpful? Give feedback.
All reactions