Rootless Podman on ZFS

Ugh. Today I had to spend 30 minutes figuring out how to get rootless podman to run on zfs.

The gist of it is to configure podman to use /usr/bin/fuse-overlayfs as its “mount_program”.

This is what I found on Reddit that worked out for me on Ubuntu 22.04 with ZFS disk encryption enabled

$ cat .config/containers/storage.conf 
[storage]
driver="overlay"

[storage.options.overlay]
mount_program = "/usr/bin/fuse-overlayfs"

Now, I don’t really mind having to do a bit of tinkering to get things running. But what I do mind is when I can’t easily find this in official documentation and wind up in (because I’m new to podman) complex discussions about drivers and filesystems that aren’t solving the issue.

My opinion is that (common) situations and setups like these should be covered in easy to find documentation/tutorials.

I hope this helps.


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

If you’d like to utilise the power of Webmentions do the following:
1: Create a post or something as a response to this one and make sure that the response contains this posts permalink URL (protip: copy and paste it from your browser)
3: Copy and paste the URL from your response in the field below and click Ping Me! 3: Wait for the moderation gnomes to do their work.
4: Done!