Skip to content
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

Support native volume mounts in interaction with podman desktop wsl integration #25085

Open
schlichtanders opened this issue Jan 22, 2025 · 3 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@schlichtanders
Copy link

schlichtanders commented Jan 22, 2025

Feature request description

This relates to #8016 in that the solution there to mount the whole user directory within podman machine init -v $USER:$USER does not work on podman desktop with wsl2 setup when using pod man from another wsl (e.g. Ubuntu), as the podman machine is run in a completely different container.

This was already reported at the respective discussion page #13537, but never raised any significant attention so far.

For podman desktop to be a functional alternative to docker desktop for windows, such a native volume mount support is key.

Suggest potential solution

Some form of automatic tunnel setup between the containers would be ideal. If it could happen generically for podman-remote, the better, but if only a windows wsl.exe specific solution is feasible, that would be enough for this issue.

Have you considered any alternatives?

I couldn't find any alternative. Docker Desktop for Windows, of course, but that is licensed and not open source.

Additional context

Add any other context or screenshots about the feature request here.

@schlichtanders schlichtanders added the kind/feature Categorizes issue or PR as related to a new feature. label Jan 22, 2025
@arixmkii
Copy link
Contributor

arixmkii commented Jan 22, 2025

WSL2 should by default mount all your drives into VM. With default config your user home will be located in /mnt/c/Users/<username>

This is output from newly created machine (everything default)

[~]$ ls -l /mnt/c/Users/
total 0
lrwxrwxrwx 1 user user   18 Apr  1  2024 'All Users' -> /mnt/c/ProgramData
drwxrwxrwx 1 user user 4096 Jan 21 23:32  User
dr-xr-xr-x 1 user user 4096 Nov 12 13:05  Default
lrwxrwxrwx 1 user user   20 Apr  1  2024 'Default User' -> /mnt/c/Users/Default
drwxrwxrwx 1 user user 4096 Nov 12 12:51  Public
-r-xr-xr-x 1 user user  174 Apr  1  2024  desktop.ini

@schlichtanders
Copy link
Author

It is about using podman with lokal volume bounds from another wsl (e.g. Ubuntu default wsl)

@arixmkii
Copy link
Contributor

@schlichtanders Thank you for clarification. Yeah, this thing will be tricky a lot more tricky. Let's see if someone has any additional input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants