Podman NFS rootless

Voir aussi : https://kcore.org/2023/12/13/adventures-with-rootless-containers/

Source et explications : https://www.redhat.com/en/blog/rootless-podman-nfs

Changer

~/.config/containers/storage.conf

[storage] driver = "overlay" runroot = "/run/user/1000" graphroot = "/home/myuser/.local/share/containers/storage"

En

[storage] driver = "overlay" runroot = "/run/user/1000" graphroot = "/var/tmp/myuser/containers/storage

Ou créer un FS

truncate -s 10g /home/myuser/xfs.img mkfs.xfs -m reflink=1 /home/myuser/xfs.img mount /home/myuser/xfs.img /home/myuser/.local/share/containers

Autres

--userns=keep-id ignore_chmod_errors = “true” in storage.conf

~/.config/containers/storage.conf

[storage] driver="overlay" [storage.options] mount_program = "/usr/bin/fuse-overlayfs" [storage.options.overlay] mountopt="xattr_permissions=2,threaded=1"

Autre

podman volume create --opt type=nfs --opt o=async --opt device=mynfsserver:/path/to/share

Voir rootless_storage_path