-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman-remote binds files as directories on WSL #24434
Comments
Does For windows there is some special code that maps the windows client path to the correct WSL server path automatically but if you use the normal linux podman-remote it cannot do that. |
@Luap99 As I mentioned, I use Ubuntu under WSL.
By server side you mean what? |
Well the server where podman actual runs not the client side WSL instance |
Why would that file exist on the podman machine (if you mean
So, you are saying that if I mount a file from Windows to a container, then Podman translates that file path into the podman machine (something like And in my case, when I mount a file from a WSL instance to a container, then Podman also translates that file path into the podman machine, however this case works only for directories. |
Correct
No directory or file should not make a difference for resolving a path. However the thing I am not clear on if the linux remote client resolves the relative path on the client or the on the server relative the the service cwd. |
I don't really remember. I should have but not 100% sure, so I'll check the next time I install Podman. |
Issue Description
podman-remote mounts files as directories
Steps to reproduce the issue
Steps to reproduce the issue: after installing
podman-remote
via https://podman-desktop.io/docs/podman/accessing-podman-from-another-wsl-instance:$ touch hello.conf $ podman-remote-static-linux_amd64 run --rm -v ./hello.conf:/etc/hello.conf --entrypoint ls ccfactory/binutils:2.38-x86_64-linux-gnu -a -lah -a /etc/hello.conf drwxr-xr-x 2 root root 4.0K Oct 31 14:31 . drwxr-xr-x 1 root root 4.0K Oct 31 16:36 ..
Using the same command on Windows host works fine:
Describe the results you received
Files are mounted as directories.
Describe the results you expected
Files should be mounted as files.
podman info output
podman info
Podman in a container
No
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Host: Windows 10 19045
Podman Desktop: 1.13.3
podman-remote: tried both 4.9.1 and 5.2.5
WSL v2
WSL containers: Ubuntu 20.04.6 and Ubuntu 24.04.1
Additional information
Docker Desktop integration with WSL works perfectly - it creates a symlink:
The text was updated successfully, but these errors were encountered: