Collection with some of my Quadlet configuration files, or modifications of configurations found on the internet.
Feel free to contribute if you wrote a better implementation, some things like podman secrets may not have been added yet.
- Crafty View ↗
- Nextcloud (Apache) View ↗
- Nextcloud (Caddy) View ↗
- Pterodactyl View ↗
- Technitium View ↗
- Wireguard-Easy View ↗
-
The default quadlet container directory for a rootless system is
~/.config/containers/systemd/. Place all files from the container/pod in that directory. When running a rootful container, place them in a corresponding system-wide directory, like/etc/containers -
Look in the container directory's README file for additional configuration steps and follow them.
-
Reload the systemd daemon with
systemctl --user daemon-reload, or when running podman as root:sudo systemctl daemon-reload -
Start the service by running
systemctl --user start container-name.service. When there are multiple container files, run the one ending with-pod. When running podman as root, runsudo systemctl start container-name.serviceinstead. If the services don't show up, try the steps in Debugging Podman Quadlets -
If necessary, open the services' ports in your firewall. With
firewalld(default on RHEL-based distributions) this is done withfirewall-cmdusing--add-service=or--add-port=with--permanent
When quadlets aren't showing up in systemctl when trying to run them, it's possible to show the errors by doing a dry run:
/usr/libexec/podman/quadlet -dryrun -userOmit -user when parsing rootful services
With a user that has permissions to view logs, look at the journald logs:
journalctl -xef _SYSTEMD_USER_UNIT=container-name.serviceWith running containers as root, replace _SYSTEMD_USER_UNIT with _SYSTEMD_UNIT
View the podman runtime logs like below. If there's not enough information try the instructions above for more detailed logs
podman logs container_namepodman-systemd.unit - systemd units using Podman Quadlet
Make systemd better for Podman with Quadlet - Red Hat
You're free to use any of these configurations however you like