<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Redis add-on containers are created without Docker memory limits since 10.0.0]]></title><description><![CDATA[<p dir="auto">Hi Cloudron team,</p>
<p dir="auto">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%).</p>
<p dir="auto">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.</p>
<h3>Steps to reproduce</h3>
<ol>
<li>Open a WordPress (Developer) app.</li>
<li>Disable its Redis add-on if it’s already enabled.</li>
<li>Enable the Redis add-on.</li>
<li>Check the Redis service in Cloudron’s Services dashboard or inspect the container with Docker.</li>
</ol>
<pre><code class="language-bash">docker inspect \
  --format '{{.Name}} Memory={{.HostConfig.Memory}} MemorySwap={{.HostConfig.MemorySwap}}' \
  redis-&lt;app-id&gt;
</code></pre>
<p dir="auto"><strong>Actual result</strong></p>
<pre><code class="language-text">Memory=0 MemorySwap=0
</code></pre>
<p dir="auto"><strong>Expected result</strong></p>
<p dir="auto">Docker should enforce the configured Redis service memory limit, which is <code>268435456</code> bytes (256 MiB) in my case.</p>
<p dir="auto">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.</p>
<h3>Where the regression started</h3>
<ul>
<li><strong>August 3, 2026</strong> — Commit <code>7179ad2464ec035d3ebb2dbdd292ddae7fc5965f</code> removed <code>-m ${memoryLimit}</code> and <code>--memory-swap -1</code> from <code>setupRedis()</code>. Both flags were present in the parent commit and in 9.2.0. <a href="https://git.cloudron.io/platform/box/-/commit/7179ad2464ec035d3ebb2dbdd292ddae7fc5965f" target="_blank" rel="noopener noreferrer nofollow ugc">Introducing diff</a></li>
<li><strong>10.0.0 was the first affected release.</strong> The relevant files in the official archive match the tagged source. <a href="https://git.cloudron.io/platform/box/-/tags/v10.0.0" target="_blank" rel="noopener noreferrer nofollow ugc">10.0.0 tag</a> · <a href="https://releases.cloudron.io/box-086a3c5060-086a3c5060-10.0.0.tar.gz" target="_blank" rel="noopener noreferrer nofollow ugc">Official release archive</a></li>
<li><strong>Two related changes left the Docker limit unset.</strong> Commit <code>9b0f8aea</code> added <code>CLOUDRON_MEMORY_LIMIT</code> for Redis’s internal configuration. Commit <code>99cf3994</code> made Redis recreate its container when the password, eviction policy, or persistence settings change. Those recreations still use the same creation path. <a href="https://git.cloudron.io/platform/box/-/commit/9b0f8aea0dbf5788d653392ca83874d0aa803503" target="_blank" rel="noopener noreferrer nofollow ugc">Internal memory configuration diff</a> · <a href="https://git.cloudron.io/platform/box/-/commit/99cf399454217b113cff1d67ee9ad76a6feadc3f" target="_blank" rel="noopener noreferrer nofollow ugc">Redis recreation diff</a></li>
</ul>
<h3>Why re-enabling Redis loses the limit</h3>
<ul>
<li>The dashboard toggle runs <code>changeServicesCommand()</code> → <code>setupAddons()</code> → <code>setupRedis()</code>. That path creates the Redis container and does not call <code>applyMemoryLimit()</code>. <a href="https://git.cloudron.io/platform/box/-/blob/774cf7e0a0570880fa37411829c1ee4a901426ed/src/apptask.js#L609" target="_blank" rel="noopener noreferrer nofollow ugc">App task in <code>apptask.js</code></a></li>
<li>Saving the allocation in Services runs <code>configureService()</code>, which calls <code>applyMemoryLimit()</code> directly or through <code>rebuildService()</code>. Platform initialization also reapplies the limits for enabled Redis instances. <a href="https://git.cloudron.io/platform/box/-/blob/774cf7e0a0570880fa37411829c1ee4a901426ed/src/services.js#L1661" target="_blank" rel="noopener noreferrer nofollow ugc">Memory-limit helper in <code>services.js</code></a></li>
</ul>
<p dir="auto">Redis’s startup log on my server reported <code>memory_limit=268435456 maxmemory=257949696</code> while Docker reported zero for both limits. The Redis process received its internal allocation, but the container itself had no Docker memory cap.</p>
<h3>Status in 10.2.1 and master</h3>
<p dir="auto">The source comparison found that <code>services.js</code>, <code>apptask.js</code>, <code>docker.js</code>, and <code>platform.js</code> are byte-for-byte identical across 10.2.0, 10.2.1, and master at <code>4ff927209822</code>, 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.</p>
<ul>
<li><a href="https://git.cloudron.io/platform/box/-/compare/v10.2.0...v10.2.1" target="_blank" rel="noopener noreferrer nofollow ugc">10.2.0 to 10.2.1 comparison</a></li>
<li><a href="https://releases.cloudron.io/box-774cf7e0a0-774cf7e0a0-10.2.1.tar.gz" target="_blank" rel="noopener noreferrer nofollow ugc">Official 10.2.1 release archive</a></li>
<li><a href="https://git.cloudron.io/platform/box/-/commit/4ff927209822e5e1745da495619835fd90014d6e" target="_blank" rel="noopener noreferrer nofollow ugc">Master commit checked</a></li>
<li><a href="https://git.cloudron.io/platform/box/-/commit/340b59af5d42a00baaab1b5182810b17e5ea226b" target="_blank" rel="noopener noreferrer nofollow ugc">Redis image bump on master</a></li>
</ul>
<h3>Workaround and possible fix</h3>
<p dir="auto">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 <code>docker stats</code> and the Cloudron Services API.</p>
<p dir="auto">Could the normal Redis add-on provisioning path call <code>applyMemoryLimit()</code> after container creation? If a restore or import needs temporary memory headroom, the limit could be applied once that work completes.</p>
<p dir="auto">Thanks for taking a look! I’m happy to share logs or test a fix.</p>
]]></description><link>https://forum.cloudron.io/topic/16395/redis-add-on-containers-are-created-without-docker-memory-limits-since-10.0.0</link><generator>RSS for Node</generator><lastBuildDate>Sun, 06 Dec 2026 01:42:51 GMT</lastBuildDate><atom:link href="https://forum.cloudron.io/topic/16395.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 05 Dec 2026 23:49:16 GMT</pubDate><ttl>60</ttl></channel></rss>