Replies: 16 comments 38 replies
-
Can we lock that issue, now that we have a discuss to talk in instead? |
Beta Was this translation helpful? Give feedback.
-
I have an issue with inline sed on 9p virtfs mount under MacOS with latest podman:
Mount on podman machine:
part of strace:
Issue is in |
Beta Was this translation helpful? Give feedback.
-
What is the expected ownership of bind mounted volumes in a container? I would expect it would that that of the container's In the example below, the file is owned by shane (501) on macOS and that is reflected in the Podman container, unlike Docker which sets the owner to root.
|
Beta Was this translation helpful? Give feedback.
-
@shanesmith well docker has a significant advantage here in that they can just assume root for everything. we do not have the luxury. we def fiddle with permissions to make them usable by the core fcos user int he vm, and like you observed, we try to set the uid (number) to the same as the macos uid, or you run into neverending permissions errors. Perhaps it might be best if you were to say what is wrong with our approach and we see about making you happy? |
Beta Was this translation helpful? Give feedback.
-
I'm seeing very poor I/O performance on the mounted volume inside of containers. I've posted benchmarks from my MBP i7 below. Is this expected? host$ dd if=/dev/zero of=$HOME/Documents/zeroes_host.bak count=1M
1048576+0 records in
1048576+0 records out
536870912 bytes (512.0MB) copied, 5.220928 seconds, 103 MB/s container$ dd if=/dev/zero of=/app/zeroes_container.bak count=1M
1048576+0 records in
1048576+0 records out
536870912 bytes (512.0MB) copied, 280.546129 seconds, 1.8MB/s |
Beta Was this translation helpful? Give feedback.
-
Is there a solution to this issue identified yet? I'm seeing it on macos. is it a qemu issue? do i need to change my volume mount setup? |
Beta Was this translation helpful? Give feedback.
-
It seems this is related back to qemu and 9pfs https://gitlab.com/qemu-project/qemu/-/issues/944 |
Beta Was this translation helpful? Give feedback.
-
I am being affected by this issue as well. Was very happy to move to Podman from Docker but this issues might just be what makes me go back :( |
Beta Was this translation helpful? Give feedback.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as disruptive content.
This comment was marked as disruptive content.
-
Here is something to think about, please refrain from making comments that do not add any value to the discussion, they only spam and alienate others at best, making less likely to want to engage in finding solutions for the identified problems. If you just like/agree or disagree/dislike something, use the buttons, not comments. We could try to help others by hiding some useless comments but is draining. Yes, I am frustrated from time to time about the experience I get while using podman but I also know that podman team was one of the most open to suggestions and welcoming pull requests, very different than the other solution we are still competing with. Remember that podman is as free as it gets, you don't need a license or subscription to use it. But your time is too valuable for debugging these issue, pay someone to help you but don't troll others. Here is my current guide on podman tricks on macos: https://github.com/ansible/vscode-ansible/wiki/macos - remoting is not covered yet because I know is not working, also I know that is not really working even with docker. If you need mounting from local, using remoting is not suitable, performance wise anyway.. to easy to end-up wanting to mount gigabytes of data, even by mistake. |
Beta Was this translation helpful? Give feedback.
-
This is by default, you can add additional directories via the podman machine init command.
|
Beta Was this translation helpful? Give feedback.
-
Okay, so let's forget about the plan to move 1️⃣ Map VM's podman machine init -v "$HOME/sandbox/podman:$HOME/sandbox/podman" (Reference:
➡️
2️⃣ Start VM: 3️⃣ Run example image and map podman run -d -v "$HOME/sandbox/podman/html:/var/www/html:ro,z" -p 8080:8080 quay.io/rhatdan/myimage (Reference:
➡️ ⚡⚡⚡
|
Beta Was this translation helpful? Give feedback.
-
Based on my tests, installing 4.4.1 removing old podman machine and reinstalling it using default settings did add the expected 3 folders to the machine mount, the two macos temp ones and |
Beta Was this translation helpful? Give feedback.
-
In my case, podman machine is initialized using podman desktop on Windows, so this workaround don't work. I use a separate WSL distribution for my local development environment. By adding podman connection setup, I can run podman remotely using that podman machine. But how can I mount my local development directory (not the host home dir) into the podman machine? I think the mounting should be done upon connection add, rather than machine init. If possible, the podman client should open a tunnel which expose the local directory contents for the podman machine to access remotely. |
Beta Was this translation helpful? Give feedback.
-
I was experiencing this problem today using podman 4.5.1 on macOS Ventura 13.4. Restarting the podman machine should generally work , I can see that the default podman machine already mounts
If the podman machine it's not mounting those you can recreate and try again, but that deletes all your containers, images, etc.
|
Beta Was this translation helpful? Give feedback.
-
The discussion about an issue #8016
Beta Was this translation helpful? Give feedback.
All reactions