Variable for PublishPort in systemd .container #24072
LangDuTienTu
started this conversation in
Ideas
Replies: 1 comment 7 replies
-
Thanks for reporting this. The reason it does not work for ports is that Quadlet does some validation checks: https://github.com/containers/podman/blob/main/pkg/systemd/quadlet/quadlet.go#L1957. But, I'm not sure it should still do them. @vrothberg @Luap99 @rhatdan WDYT? |
Beta Was this translation helpful? Give feedback.
7 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Atm if I use variable for
PublishPort
such asPublishPort=${PORT}:${PORT}
, quadlet dryrun would show error message and quadlet cannot generate systemd serviceWhile we may use variable for
Volume
, why notPublishPort
:3Beta Was this translation helpful? Give feedback.
All reactions