Replies: 2 comments 6 replies
-
|
Quick answers.
|
Beta Was this translation helpful? Give feedback.
3 replies
-
|
@flomickl The PR addressing this was merged: #28161. |
Beta Was this translation helpful? Give feedback.
3 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.
-
Hi,
I’m trying to define a rootless Quadlet volume unit (
.volume) to pre-create a named volume. The core of my question is specifically about the recommended / Quadlet-native way to set these twopodman volume createoptions:--opt o=noexec,nosuid,nodev--opt nocopyThe goal is to reproduce the following CLI behavior, which works as expected:
podman volume create \ --driver local \ --ignore \ --opt o=noexec,nosuid,nodev \ --opt nocopy \ --label environment=production \ --label purpose=database \ --label application=demo-example \ pgdataThis behaves exactly as intended.
My Quadlet attempt (
~/.config/containers/systemd/pgdata.volume) looks like this:After starting the generated unit via:
the resulting volume looks like this:
[ { "Name": "pgdata", "Driver": "local", "Mountpoint": "/home/pody/.local/share/containers/storage/volumes/pgdata/_data", "CreatedAt": "2026-02-21T22:42:14.540821061+01:00", "Labels": { "application": "demo-example", "environment": "production", "purpose": "database" }, "Scope": "local", "Options": { "nocopy": "", "o": "noexec,nosuid,nodev" }, "MountCount": 0, "NeedsCopyUp": true, "NeedsChown": true, "LockNumber": 2 } ]This suggests that the desired driver options (
o=noexec,nosuid,nodevandnocopy) have been applied successfully.However, if I try to use:
Options=noexec,nosuid,nodevinstead of
PodmanArgs, the generator fails with:According to the documentation,
PodmanArgs=should be used for unsupported features, but it is also marked as “not recommended” because the generator cannot reason about unexpected interactions.Docs reference:
https://docs.podman.io/en/v5.6.0/markdown/podman-systemd.unit.5.html#volume-units-volume
My questions:
Driver=localvolumes withoutDevice=, what is the recommended / supported Quadlet-native way to set--opt o=noexec,nosuid,nodev?Driver=localvolumes withoutDevice=, what is the recommended / supported Quadlet-native way to set--opt nocopy?PodmanArgsthe intended/accepted approach for this scenario despite the “not recommended” note?Environment:
~/.config/containers/systemd)Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions