Support native source folder for volume mount in remote model
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...
I think this also happens, when using docker to connect to a remote server (rather than using the Docker Desktop product) ?
In Docker Toolbox (docker-machine), they worked around this issue by sharing the entire home folder (!) using vboxsf...
You should be able to create network volumes using podman volume, but I am a little uncertain about the syntax to use.
It takes a --driver parameter, which only talks about the default "local" driver that uses regular directories on the host.
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?
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 [email protected] 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 https://github.com/containers/podman/issues/8016#issuecomment-733430786, 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 do have some experience with sharing folders via SSHFS from my work on https://github.com/dustymabe/vagrant-sshfs. Would be willing to discuss strategy if anyone has questions or ideas and want to run it by me.
Sure a PR would be great. :^)
A friendly reminder that this issue had no activity for 30 days.
limavm has something like that. They use "reverse sshfs" and call it "Automatic file sharing". Maybe that helps.
https://github.com/lima-vm/lima
According to https://github.com/boot2podman/machine#accessing-files - It seems that it is possible already. Looks like it is about porting podman-machine mount as podman machine mount?