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
I am writing code that parses a compose file and launches containers based on the keywords found there.
If in my compose file I have the below configuration the code errors out with cannot unmarshal number -1 into Go struct field POSIXRlimit.r_limits.hard of type uin64
ulimits:
memlock:
soft: -1
hard: -1
I have found a workaround by substituting -1 with 18446744073709551615 which shows up as -1 upon running podman inspect <container>, however it would be nice if the library would support passing -1.
podman version
Client: Podman Engine
Version: 5.2.2
API Version: 5.2.2
Go version: go1.22.7 (Red Hat 1.22.7-2.el9_5)
Built: Fri Nov 15 08:49:31 2024
OS/Arch: linux/amd64
Note that this issue does not pop up when running podman compose which is why I think it's an issue with this library. If this needs to be raised in another repo, please let me know.
The text was updated successfully, but these errors were encountered:
I am writing code that parses a compose file and launches containers based on the keywords found there.
If in my compose file I have the below configuration the code errors out with
cannot unmarshal number -1 into Go struct field POSIXRlimit.r_limits.hard of type uin64
I have found a workaround by substituting
-1
with18446744073709551615
which shows up as-1
upon runningpodman inspect <container>
, however it would be nice if the library would support passing-1
.Note that this issue does not pop up when running
podman compose
which is why I think it's an issue with this library. If this needs to be raised in another repo, please let me know.The text was updated successfully, but these errors were encountered: