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:
Claude 2026-03-22 15:23:49 +00:00
parent ffe76144fb
commit 63a1ae6065
No known key found for this signature in database

View file

@ -105,8 +105,6 @@ podman run --detach \
--label "hiy.app=${APP_ID}" \
--label "hiy.port=${PORT}" \
--restart unless-stopped \
--memory="512m" \
--memory-swap=-1 \
--cpus="0.5" \
"$IMAGE_TAG"