Quadlet: Difference between revisions
From wikinotes
(Created page with "Quadlet is a tool for generating systemd services from podman containers. {{ TODO | can you also run podman-compose projects this way? }} = Documentation = <blockquote> {| class="wikitable" |- | src || https://github.com/containers/podman/tree/main/pkg/systemd/quadlet |- |} </blockquote><!-- Documentation -->") |
(→Notes) |
||
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Quadlet is a tool for generating systemd services from podman containers. | Quadlet is a tool for generating systemd services from podman containers.<br> | ||
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 = | = Documentation = | ||
<blockquote> | <blockquote> | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |||
| <code>man quadlet / podman-systemd.unit</code> (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 | | src || https://github.com/containers/podman/tree/main/pkg/systemd/quadlet | ||
Line 13: | Line 16: | ||
|} | |} | ||
</blockquote><!-- Documentation --> | </blockquote><!-- Documentation --> | ||
= Tutorials = | |||
<blockquote> | |||
{| class="wikitable" | |||
|- | |||
| https://mo8it.com/blog/quadlet/ || intro | |||
|- | |||
|} | |||
</blockquote><!-- Tutorials --> | |||
= Locations = | |||
<blockquote> | |||
{| class="wikitable" | |||
|- | |||
| <code>~/.config/containers/systemd/*</code> || generators for user systemd services (only for rootless podman) | |||
|- | |||
| <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 --> | |||
= Notes = | |||
<blockquote> | |||
{| class="wikitable" | |||
|- | |||
| [[quadlet install]] | |||
|- | |||
| [[quadlet usage]] | |||
|- | |||
| [[quadlet syntax]] | |||
|- | |||
|} | |||
</blockquote><!-- Notes --> | |||
= Examples = | |||
<blockquote> | |||
{| class="wikitable" | |||
|- | |||
| [[quadlet example: single container with volume]] | |||
|- | |||
|} | |||
</blockquote><!-- Examples --> |
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