You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Problems with containers started with --detach=True #174
@k9withabone That code line uses skip_serializing instead of skip_serializing_if - is that a problem when inserting detach=True into the parser instead of detach?
That code line uses skip_serializing instead of skip_serializing_if - is that a problem when inserting detach=True into the parser instead of detach?
No, those options are for when the struct is serialized into arguments for the value of the PodmanArgs= Quadlet option. The reason skip_serializing is used here instead of skip_serializing_if is, as stated in the comments, that Quadlet automatically adds --detach to the output in the generated .service file.
The problem here is with parsing --detach=True as opposed to just --detach. It needs to be set up like --tls-verify:
I think this is still failing for podman run commands using '-d' instead of '--detach=True': error: equal sign is needed when assigning values to '--detach=<DETACH>'
I think this is still failing for podman run commands using '-d' instead of '--detach=True': error: equal sign is needed when assigning values to '--detach=<DETACH>'
Activity
TheRealBecks commentedon Feb 8, 2026
@aylen384 Thank you for your report! Can you please also add your
compose.yamlfile so we can replicate the issue?aylen384 commentedon Feb 8, 2026
aylen384 commentedon Feb 8, 2026
Example
.servicefile:TheRealBecks commentedon Feb 8, 2026
@k9withabone That code line uses
skip_serializinginstead ofskip_serializing_if- is that a problem when insertingdetach=Trueinto the parser instead ofdetach?podlet/src/cli/container/podman.rs
Line 132 in ca463af
k9withabone commentedon Feb 8, 2026
No, those options are for when the struct is serialized into arguments for the value of the
PodmanArgs=Quadlet option. The reasonskip_serializingis used here instead ofskip_serializing_ifis, as stated in the comments, that Quadlet automatically adds--detachto the output in the generated.servicefile.The problem here is with parsing
--detach=Trueas opposed to just--detach. It needs to be set up like--tls-verify:podlet/src/cli/container/podman.rs
Lines 382 to 384 in ca463af
Fixes #174
Fix: Problems with containers started with --detach=True
Fixes containers#174
rp86 commentedon Jun 11, 2026
I think this is still failing for podman run commands using '-d' instead of '--detach=True':
error: equal sign is needed when assigning values to '--detach=<DETACH>'dcermak commentedon Sep 15, 2026
This is still an issue btw
cyqsimon commentedon Sep 21, 2026
Just ran into this today. It just needs a
num_args = 0..=1to make Clap mirror Cobra's boolean flag parsing behaviour.Should be fixed in #229.