-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: Docker E2E fails when Docker rejects default resource caps #98601
Copy link
Copy link
Open
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:otherThis issue has meaningful maintainer-visible impact outside the owned taxonomy.This issue has meaningful maintainer-visible impact outside the owned taxonomy.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
Docker E2E and package-backed Docker lanes can fail before the test container starts when the local Docker daemon rejects OpenClaw's default
--memory,--cpus, or--pids-limitresource controls.Steps to reproduce
--memory,--cpus, and--pids-limit.Expected behavior
The Docker E2E helper should handle daemon/runtime resource-limit rejection by retrying without only OpenClaw's default injected resource caps, while preserving ordinary Docker failures.
Actual behavior
The helper fails immediately on the resource-limit create/start error. Operators have to know to set
OPENCLAW_DOCKER_E2E_DISABLE_RESOURCE_LIMITS=1manually, and failed named-container or--cidfileattempts can leave artifacts that block retry.OpenClaw version
Current
mainbefore PR #98579.Operating system
Docker hosts with constrained, nested, rootless, or otherwise limited cgroup support.
Install method
Source checkout / Docker E2E helper scripts.
Model
N/A
Provider / routing chain
N/A
Logs
Original daemon/runtime resource-cap failures covered by the report:
Real rootless Docker daemon repro from 122.51.21.218:
Screenshots, recordings, and evidence
PR #98579 now includes live daemon proof from 122.51.21.218:
server=29.6.1 cgroup=2 driver=overlayfs cgroupDriver=systemd.docker runbut rejecteddocker run --memory 64m --cpus 0.5 --pids-limit 64with Docker's realNanoCPUs can not be set ... cgroup is not mountederror.containers=0,running=0, andimages=0.Focused tests also cover both helper paths:
scripts/lib/docker-e2e-container.shretrying after cgroup/resource-cap rejection.scripts/lib/docker-e2e-package.shretrying after the same class of rejection.--name/--cidfilearguments.Impact and severity
Affected: developers and CI operators running Docker E2E lanes on constrained Docker hosts.
Severity: Medium. The test lane fails before exercising the OpenClaw behavior under test.
Frequency: Reproducible on hosts where Docker rejects the default cgroup/resource-limit controls.
Consequence: Operators need manual environment knowledge to disable resource caps, and failed
--name/--cidfileartifacts can make retry less obvious.Additional information
Fix PR: #98579