Skip to content

Instantly share code, notes, and snippets.

@arikw
Last active July 6, 2024 15:52
Show Gist options
  • Save arikw/fbaa56b7f0a25957c25f8081908ea69c to your computer and use it in GitHub Desktop.
Save arikw/fbaa56b7f0a25957c25f8081908ea69c to your computer and use it in GitHub Desktop.
Running podman on an immutable filesystem (Overlayroot)

Running podman on an immutable filesystem (Overlayroot)

The main idea: Configure Podman to use alternative paths outside the overlay filesystem

Steps:

  • If already in overlay mode, break outside of it using the overlayroot-chroot command
  • To leave mounts out of the overlay, use recurse=0 (e.g., overlayroot="tmpfs:recurse=0") in /etc/overlayroot.conf
  • Edit /etc/containers/storage.conf and use alternative path values for runroot and graphroot under the [storage] section
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment