Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Offical apps | Community apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Support
  3. Redis add-on containers are created without Docker memory limits since 10.0.0

Redis add-on containers are created without Docker memory limits since 10.0.0

Scheduled Pinned Locked Moved Unsolved Support
1 Posts 1 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • d19dotcaD
    d19dotcaD
    d19dotca
    wrote last edited by
    #1

    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

    1. Open a WordPress (Developer) app.
    2. Disable its Redis add-on if it’s already enabled.
    3. Enable the Redis add-on.
    4. 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=0
    

    Expected result

    Docker should enforce the configured Redis service memory limit, which is 268435456 bytes (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 7179ad2464ec035d3ebb2dbdd292ddae7fc5965f removed -m ${memoryLimit} and --memory-swap -1 from setupRedis(). 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 9b0f8aea added CLOUDRON_MEMORY_LIMIT for Redis’s internal configuration. Commit 99cf3994 made 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 call applyMemoryLimit(). App task in apptask.js
    • Saving the allocation in Services runs configureService(), which calls applyMemoryLimit() directly or through rebuildService(). Platform initialization also reapplies the limits for enabled Redis instances. Memory-limit helper in services.js

    Redis’s startup log on my server reported memory_limit=268435456 maxmemory=257949696 while 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, and platform.js are byte-for-byte identical across 10.2.0, 10.2.1, and master at 4ff927209822, 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 stats and 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.

    --
    Dustin Dauncey
    www.d19.ca

    1 Reply Last reply
    0

    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
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Bookmarks
    • Search