Commit 5d1a455
committed
fix(podman): pass bare RLIMIT type ("NOFILE") to specgen
Podman's addRlimits (pkg/specgen/generate/oci.go) prepends "RLIMIT_" to
whatever Type we pass before handing the spec to runc. Setting
Type="RLIMIT_NOFILE" yielded "RLIMIT_RLIMIT_NOFILE" in the final OCI
bundle, which runc rejects with:
runc create failed: wrong rlimit value: RLIMIT_RLIMIT_NOFILE
Pass the bare suffix "NOFILE" so podman appends the prefix exactly once.
Docker's path is unaffected — it uses units.Ulimit{Name: "nofile"}.1 parent 62e6336 commit 5d1a455
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
258 | 262 | | |
259 | 263 | | |
260 | | - | |
| 264 | + | |
261 | 265 | | |
262 | 266 | | |
263 | 267 | | |
| |||
0 commit comments