Remove --memory limit to avoid memory.swap.max cgroup error on Pi
Raspberry Pi OS does not enable swap cgroup accounting by default. Even --memory-swap=-1 causes runc to write "max" to memory.swap.max, which fails with ENOENT when the file does not exist. Removing --memory entirely means runc skips all memory.* cgroup writes. --cpus is unaffected (uses cpu.max, which is always present). https://claude.ai/code/session_01FKCW3FDjNFj6jve4niMFXH
This commit is contained in:
parent
ffe76144fb
commit
63a1ae6065
1 changed files with 0 additions and 2 deletions
|
|
@ -105,8 +105,6 @@ podman run --detach \
|
||||||
--label "hiy.app=${APP_ID}" \
|
--label "hiy.app=${APP_ID}" \
|
||||||
--label "hiy.port=${PORT}" \
|
--label "hiy.port=${PORT}" \
|
||||||
--restart unless-stopped \
|
--restart unless-stopped \
|
||||||
--memory="512m" \
|
|
||||||
--memory-swap=-1 \
|
|
||||||
--cpus="0.5" \
|
--cpus="0.5" \
|
||||||
"$IMAGE_TAG"
|
"$IMAGE_TAG"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue