Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

[FIX] podman lxc is working on zfs with this fix #3530

@tctlrd

Description

@tctlrd

Please verify that you have read and understood the guidelines.

yes

A clear and concise description of the issue.

There is a workaround for making podman lxc run on zfs:
https://medium.com/@rar1871/docker-podman-in-lxc-with-zfs-5196a13bb8be

What settings are you currently utilizing?

Default Settings

Which Linux distribution are you employing?

Debian 12

If relevant, including screenshots or a code block can be helpful in clarifying the issue.

No response

Please provide detailed steps to reproduce the issue.

Create a mount wrapper.

nano /usr/local/bin/overlayzfsmount

Paste the following code into the file:

#!/bin/sh
exec /bin/mount -t overlay overlay "$@"

Save and close the file. Then make it executable by running

chmod +x /usr/local/bin/overlayzfsmount

  1. Edit Podman’s storage configuration. If the file does not exist, go ahead and create it.

nano /etc/containers/storage.conf

Note: If you are running in rootless mode the path to this file will be different. It will most likely be $HOME/.config/containers/storage.conf

Add the following to the file

[storage]
driver = "overlay"
runroot = "/run/containers/storage"
graphroot = "/var/lib/containers/storage"

[storage.options]
mount_program = "/usr/local/bin/overlayzfsmount"

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions