Redis add-on containers are created without Docker memory limits since 10.0.0
-
Hi Cloudron team,
I recently ran into an issue on Cloudron 10.2.0 where enabling the optional Redis add-on creates a container without a Docker memory limit. Cloudron shows the configured allocation of 256 MiB, but the Services dashboard shows 0% memory usage (actually it shows no graph bar at all for the service, presumably due to the 0%).
I reproduced this on my server today and used AI to trace the Git history, compare the release archives, and draft most of the technical write-up below.
Steps to reproduce
- Open a WordPress (Developer) app.
- Disable its Redis add-on if it’s already enabled.
- Enable the Redis add-on.
- Check the Redis service in Cloudron’s Services dashboard or inspect the container with Docker.
docker inspect \ --format '{{.Name}} Memory={{.HostConfig.Memory}} MemorySwap={{.HostConfig.MemorySwap}}' \ redis-<app-id>Actual result
Memory=0 MemorySwap=0Expected result
Docker should enforce the configured Redis service memory limit, which is
268435456bytes (256 MiB) in my case.I first saw this across 20 WordPress apps after disabling and re-enabling Redis. I then reproduced it through the Cloudron dashboard on a WordPress starter install without FlyingPress.
Where the regression started
- August 3, 2026 — Commit
7179ad2464ec035d3ebb2dbdd292ddae7fc5965fremoved-m ${memoryLimit}and--memory-swap -1fromsetupRedis(). Both flags were present in the parent commit and in 9.2.0. Introducing diff - 10.0.0 was the first affected release. The relevant files in the official archive match the tagged source. 10.0.0 tag · Official release archive
- Two related changes left the Docker limit unset. Commit
9b0f8aeaaddedCLOUDRON_MEMORY_LIMITfor Redis’s internal configuration. Commit99cf3994made Redis recreate its container when the password, eviction policy, or persistence settings change. Those recreations still use the same creation path. Internal memory configuration diff · Redis recreation diff
Why re-enabling Redis loses the limit
- The dashboard toggle runs
changeServicesCommand()→setupAddons()→setupRedis(). That path creates the Redis container and does not callapplyMemoryLimit(). App task inapptask.js - Saving the allocation in Services runs
configureService(), which callsapplyMemoryLimit()directly or throughrebuildService(). Platform initialization also reapplies the limits for enabled Redis instances. Memory-limit helper inservices.js
Redis’s startup log on my server reported
memory_limit=268435456 maxmemory=257949696while Docker reported zero for both limits. The Redis process received its internal allocation, but the container itself had no Docker memory cap.Status in 10.2.1 and master
The source comparison found that
services.js,apptask.js,docker.js, andplatform.jsare byte-for-byte identical across 10.2.0, 10.2.1, and master at4ff927209822, checked December 5, 2026. The official 10.2.1 archive also matches its tag. Master bumps the Redis image to 3.12.1 and leaves the host-side provisioning path unchanged. My runtime reproduction was on 10.2.0. The findings for 10.2.1 and master are based on source inspection.- 10.2.0 to 10.2.1 comparison
- Official 10.2.1 release archive
- Master commit checked
- Redis image bump on master
Workaround and possible fix
Re-saving the existing 256 MiB allocation in Cloudron’s Services view restored the Docker memory limit across all 20 affected WordPress apps. I verified the result with
docker statsand the Cloudron Services API.Could the normal Redis add-on provisioning path call
applyMemoryLimit()after container creation? If a restore or import needs temporary memory headroom, the limit could be applied once that work completes.Thanks for taking a look! I’m happy to share logs or test a fix.
-
-
G girish has marked this topic as solved
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login