-
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
Support native source folder for volume mount in remote model #8016
Comments
I think this also happens, when using docker to connect to a remote server (rather than using the Docker Desktop product) ? You should be able to create network volumes using |
A friendly reminder that this issue had no activity for 30 days. |
I am not sure how we would make this work, other then to export the current directory to the server running podman via nfs, samba or some other network protocol and then volume mount that directory into the container. I am not sure is sshfs has this type ability, to share your homedir with a remote machine? |
The way we used sshfs in docker-machine, was to share the remote machine with a local mount. https://docs.docker.com/machine/reference/mount/ That is, the mount was going in the other direction. Used sftp on the remote and fuse on the local. Other than that, it was just VirtualBox shared folders... |
May I suggest that the issue is that podman is validating the mount points on the local side, rather than on the remote side? I'm running on macOS and deploying to a Linux host, on which the mount points exist. Maybe if podman client were to not validate the paths when connecting to a remote service, then it would just work? |
That sounds like a separate issue? This one is about emulating a Docker
behavior where folders from an OS X host are able to be mounted into
containers on the Linux VM running containers. What you're describing is
definitely separate (but definitely a bug, and I encourage you to file an
issue about it).
…On Tue, Nov 24, 2020 at 9:57 PM Nathan Fiedler ***@***.***> wrote:
May I suggest that the issue is that podman is validating the mount points
on the local side, rather than on the remote side? I'm running on macOS and
deploying to a Linux host, on which the mount points exist. Maybe if podman
client were to not validate the paths when connecting to a remote service,
then it would just work?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8016 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3AOCCW773SGH72W3WGX23SRRXBVANCNFSM4SQV632Q>
.
|
Ah, you're right, I was seeing what I wanted to see. I've filed another issue, thanks. |
A friendly reminder that this issue had no activity for 30 days. |
This issue is not stale, but no one is currently working on it. |
A friendly reminder that this issue had no activity for 30 days. |
@baude This would be your stretch goal for Podman on a MAC. |
A friendly reminder that this issue had no activity for 30 days. |
A friendly reminder that this issue had no activity for 30 days. |
Podman machine work is on going, but this is still a stretch goal. Would need someone from community to start working on it. |
A friendly reminder that this issue had no activity for 30 days. |
I think that people who are using the WSL virtual machine (on Windows) are seeing the same thing too... The files that are actually on the VM are fast, but the files that are accessed through So it is "normal", for this Wizard of Oz setup. |
Docker is using a different approach: they are using the Virtualization Framework and Shared directories - VirtIO FS. Why is it not applicable to podman on Mac ? I'm sure that it requires a huge rewrite/rethinking of how podman/qemu/etc are integrated, but in the long time maybe you (Podman developers) will have to spend less time to fit VM/podman with new Apple hardware or new version of OS and we'll have better performance on running containers |
The virtualization.framework is already supported by QEMU "hvf". Supporting virtiofs (in Rust) is planned for a future version of Podman, it was mentioned on the community meeting. EDIT: seems like it was only hypervisor.framework so far, even for ARM Please note that Docker Desktop is not Open Source... |
While Virtualization.framework is higher level than what QEMU uses, the "hvf" being referenced by @afbjorklund it uses is https://developer.apple.com/documentation/hypervisor, which AFAIK is what the Virtualization framework uses underneath. |
ok, thank you for the info. So we have to wait for the Rust virtiofs support to see I/O performance improvement. |
The first step would be to have any remote file system support... So virtfs will be an improvement to Podman. |
Small remark about the usage of |
@fogfish I think the example involved both, since it was |
@afbjorklund what kind of remote fs your are looking in this context? I can repeat my measurements on it. |
I have run the same tar benchmark starting podman machine VM (Fedora CoreOS) with native Apple Virtualization Framework: Fedora CoreOS VM using native Apple Virtualization Framework, with /Users host directory mounted as virtiofs
9p mounted filesystem on qemu
I hope to get the same performance with the Rust virtiofs qemu support |
The ones we talked about are the native fs (xfs?), sshfs (fuse), virtfs (9p) and virtiofs. If you are bored, you can also include SMB and NFS ?
|
can we please transfer this conversation to a github discussion? i'm not sure we are acting in the spirit of a github issue anymore? |
The discussion hasn't been about the issue (remote mount) in a long time, but I still prefer that over the previous situation...
Moving it to chat is fine. |
Let's use this discussion then to continue collaboration: |
So installed v4.0.2 today on MacOS v12.3 and it seems mounting directories is still FUBAR claiming existing directories don't exist. Is it possible to run podman on MacOS and mount directories? If so what do we need to do. IBM has suggested we move to podman in lieu of docker desktop but this is a show stopper. |
@wnm3 yes it works... did you read the blog announcement for it? What did you try? You gotta provide more information and perhaps I can help. |
This issue causes VS Code to not work with podman |
I can provide an example which occurs with VS Code using Remote-Containers:
|
You need to mount it using a flag to Unlike Docker Desktop there are no default mounts (yet?), so everything is explicit. |
This blog post: https://podman.io/blogs/2022/03/15/podman4.0.2brew.html ? Is there further documentation with more detail available for macOS(/Windows?) mounts specifically? From further replies above it sounds as if |
@srcshelton , correct, works for me with mount on machine as well, see: https://medium.com/@butkovic/favoring-podman-over-docker-desktop-33368e031ba0 |
we intend to have a default volume mount in 4.1, but for now you have to mount it. Consider something like -v $HOME:$HOME ? |
Thanks @typekpb the article you referenced is nicely organized and provided the missing step for me when initializing the machine to mount data that could later be referenced by the -v command when running a container. |
Confirming that following the steps in the article https://medium.com/@butkovic/favoring-podman-over-docker-desktop-33368e031ba0 works perfectly. |
I am also able to get it working with some quirks. I am having issues with a few things.
As a work around I am trying to delete the volume:
I am unable to delete the volume because it is being "used" by a container which doesn't exist according to the output of I am able to delete the volume when I run this command:
|
Tried creating my podman machine with the -v parameter to mount a folder, specifically /opt
Then to check:
|
@jsanta can you please file a new issue for this one? can you also walk me through all the commands issued? I appreciate it. |
there is a github discussion on the matter at -> #13537 please file new issues for bugs regarding volume mounts. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
Currently, looks like in podman's remote client case, bind volume will use source folders on podman server's host, could we support (or give some configurations to choose) using source folders on podman client's host?
podman client and podman server may run in different hosts, or one runs in the host, the other runs in a VM. Have the ability to mount folders on the client side might be able to open more use cases...
The text was updated successfully, but these errors were encountered: