Fix container start failure on Pi: disable cgroup swap limit
Raspberry Pi OS does not enable swap accounting in cgroups by default, so the memory.swap.max cgroup v2 file does not exist. Setting --memory without --memory-swap causes runc to write a swap limit to that file, which fails with ENOENT. Adding --memory-swap=-1 tells runc to leave swap unlimited, skipping the memory.swap.max write entirely. https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH
This commit is contained in:
parent
2fdffc0acb
commit
ffe76144fb
1 changed files with 1 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ podman run --detach \
|
||||||
--label "hiy.port=${PORT}" \
|
--label "hiy.port=${PORT}" \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
--memory="512m" \
|
--memory="512m" \
|
||||||
|
--memory-swap=-1 \
|
||||||
--cpus="0.5" \
|
--cpus="0.5" \
|
||||||
"$IMAGE_TAG"
|
"$IMAGE_TAG"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue