Replies: 1 comment
-
quadlet is a generator, it translated .contianer file to service files. You cannot use the .container suffixed with systemd. As for enabling a unit that is documented: https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#enabling-unit-files |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Enabling a Quadlet .container unit (e.g. myproj.container) via systemctl enable myproj.container fails with:
This happens even though the Quadlet generator is present, and --dryrun shows the service being generated correctly.
This undermines the core value of Quadlet — declarative container units that persist across reboots.
Steps to reproduce
→ shows a correct myproj.service generated under /run/systemd/generator/.
Expected behavior
Running:
should succeed and configure the container service to start on boot, just like enabling any other native systemd unit.
Workarounds
• Manually generate a service via podman generate systemd and enable that.
• Or create a helper .service that Wants= the generated one.
But both defeat Quadlet’s declarative design.
System info
• Podman version: 5.4.2
• Systemd version: 257 (257.7-1)
• Distro: debian trixie
Beta Was this translation helpful? Give feedback.
All reactions