Quadlet: Difference between revisions
From wikinotes
(→Notes) |
|||
(10 intermediate revisions by the same user not shown) | |||
Line 30: | Line 30: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
| <code>~/.config/containers/systemd/* | | <code>~/.config/containers/systemd/*</code> || generators for user systemd services (only for rootless podman) | ||
|- | |- | ||
| <code>/usr/ | | <code>/etc/containers/systemd/*</code> || generators for system systemd services | ||
|- | |||
| <code>/usr/share/containers/systemd/*</code> || generators for system systemd services (installed by packages) | |||
|- | |||
| <code>/usr/lib/podman/quadlet</code> || quadlet executable (not on path) | |||
|} | |} | ||
</blockquote><!-- Locations --> | </blockquote><!-- Locations --> | ||
= | = Notes = | ||
<blockquote> | <blockquote> | ||
= | {| class="wikitable" | ||
<blockquote> | |- | ||
| [[quadlet install]] | |||
|- | |||
| [[quadlet usage]] | |||
|- | |||
| [[quadlet syntax]] | |||
|- | |||
|} | |||
</blockquote><!-- Notes --> | |||
= Examples = | |||
<blockquote> | <blockquote> | ||
{| class="wikitable" | |||
|- | |||
| [[quadlet example: single container with volume]] | |||
|- | |||
|} | |||
</blockquote><!-- Examples --> | |||
</blockquote><!-- |
Latest revision as of 21:43, 18 May 2024
Quadlet is a tool for generating systemd services from podman containers.
You can also describe a project as a podman-compose project, and generate systemd services for it as well.
The goal for the project is to be concise and change tolerant with sane defaults.
Documentation
man quadlet / podman-systemd.unit
(incl. filetypes/opts)https://man.archlinux.org/man/quadlet.5.en official multi-container tutorial https://www.redhat.com/sysadmin/multi-container-application-podman-quadlet src https://github.com/containers/podman/tree/main/pkg/systemd/quadlet
Tutorials
https://mo8it.com/blog/quadlet/ intro
Locations
~/.config/containers/systemd/*
generators for user systemd services (only for rootless podman) /etc/containers/systemd/*
generators for system systemd services /usr/share/containers/systemd/*
generators for system systemd services (installed by packages) /usr/lib/podman/quadlet
quadlet executable (not on path)
Notes
quadlet install quadlet usage quadlet syntax
Examples
quadlet example: single container with volume