You can mount s3 on podman volumes! #21538
WesselAtWork
started this conversation in
Show and tell
Replies: 2 comments 4 replies
-
This would be nice to add to the podman volume create man page? |
Beta Was this translation helpful? Give feedback.
4 replies
-
I tried out --user without using Podman was built from the main branch (git commit 4304e10). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
s3fs
+podman
I noticed with the podman.volume that you can set arguments and options for an fs
mount
!Which means you can mount s3 with
s3fs
as a podman volume!Should make this so much simpler then trying to mount it inside the container.
(Required) Reading
Cli
Systemd
s3fs.volume
Options
:z/:Z
mount optionsallow_other
Using
Other users inside of containers
The above example works because the volume is mounted as the
user
and inside alpineroot = user
in the host.If you tried:
podman run --entrypoint /bin/ash --user nginx:nginx --rm -v s3fs-volume:/s3:z,U -it docker.io/nginx:alpine ls /s3 # ls: /s3: Permission denied
What gives! As
root
you see the directory, but as anyone else it doesn't even exist!The reason is because in FUSE-land you need to allow others to access your mount.
Now Try with
allow_other
:Beta Was this translation helpful? Give feedback.
All reactions