-
|
Hi, I’m trying to define a rootless Quadlet volume unit (
The 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 ( [Unit]
Description=Named Volume pgdata (policy)
[Volume]
Driver=local
User=1000
Group=1000
PodmanArgs=--opt o=noexec,nosuid,nodev
PodmanArgs=--opt nocopy
Label=environment=production
Label=purpose=database
Label=application=demo-exampleAfter 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 ( However, if I try to use: Options=noexec,nosuid,nodevinstead of According to the documentation, Docs reference: My questions:
Environment:
Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
|
Quick answers.
|
Beta Was this translation helpful? Give feedback.
-
|
@flomickl The PR addressing this was merged: #28161. |
Beta Was this translation helpful? Give feedback.
-
|
Cool. Many thanks! |
Beta Was this translation helpful? Give feedback.
Yes, this is exactly what this change allows - passing mount options even without a device. Do not prepend the options with
o=, Quadlet will do that. SoOptions=noexec,nosuid,nodevis the way to goI'm sorry, but I can't seem to find this comment. Can you please copy paste it so I can see it?