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
-
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