fix(clawdock): include docker-compose.extra.yml in helper commands#17094
Merged
vincentkoc merged 1 commit intoopenclaw:mainfrom Feb 19, 2026
Merged
Conversation
bfc1ccb to
f92900f
Compare
_clawdock_compose() only passed -f docker-compose.yml, ignoring the extra compose file that docker-setup.sh generates for persistent home volumes and custom mounts. This broke all clawdock-* commands for setups using OPENCLAW_HOME_VOLUME. Fixes openclaw#17083 Co-Authored-By: Claude <[email protected]>
bb0a9ef to
a9c0e96
Compare
kittipond2365
pushed a commit
to kittipond2365/openclaw
that referenced
this pull request
Feb 19, 2026
…penclaw#17094) _clawdock_compose() only passed -f docker-compose.yml, ignoring the extra compose file that docker-setup.sh generates for persistent home volumes and custom mounts. This broke all clawdock-* commands for setups using OPENCLAW_HOME_VOLUME. Fixes openclaw#17083 Co-authored-by: Claude <[email protected]>
anschmieg
pushed a commit
to anschmieg/openclaw
that referenced
this pull request
Feb 19, 2026
…penclaw#17094) _clawdock_compose() only passed -f docker-compose.yml, ignoring the extra compose file that docker-setup.sh generates for persistent home volumes and custom mounts. This broke all clawdock-* commands for setups using OPENCLAW_HOME_VOLUME. Fixes openclaw#17083 Co-authored-by: Claude <[email protected]>
yneth-ray-openclaw
pushed a commit
to yneth-ray-openclaw/openclaw
that referenced
this pull request
Feb 19, 2026
…penclaw#17094) _clawdock_compose() only passed -f docker-compose.yml, ignoring the extra compose file that docker-setup.sh generates for persistent home volumes and custom mounts. This broke all clawdock-* commands for setups using OPENCLAW_HOME_VOLUME. Fixes openclaw#17083 Co-authored-by: Claude <[email protected]>
vignesh07
pushed a commit
to pahdo/openclaw
that referenced
this pull request
Feb 20, 2026
…penclaw#17094) _clawdock_compose() only passed -f docker-compose.yml, ignoring the extra compose file that docker-setup.sh generates for persistent home volumes and custom mounts. This broke all clawdock-* commands for setups using OPENCLAW_HOME_VOLUME. Fixes openclaw#17083 Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_clawdock_compose()only passes-f docker-compose.yml, ignoringdocker-compose.extra.ymlthatdocker-setup.shgenerates for persistent home volumes (OPENCLAW_HOME_VOLUME) and custom mounts (OPENCLAW_EXTRA_MOUNTS).clawdock-*commands (start, stop, shell, etc.) silently drop volume mounts, making the helper script useless for setups with persistent home volumes._clawdock_compose()now checks fordocker-compose.extra.ymland includes it via an additional-fflag when present.docker-setup.sh,docker-compose.yml, or any other helper functions.Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
User-visible / Behavior Changes
clawdock-start(and all otherclawdock-*commands) now correctly mount volumes defined indocker-compose.extra.yml, matching the behavior ofdocker-setup.sh.Security Impact (required)
NoNoNoNoNoRepro + Verification
Environment
OPENCLAW_HOME_VOLUMEset,docker-setup.shpreviously runSteps
OPENCLAW_HOME_VOLUME=openclaw-home./docker-setup.sh(createsdocker-compose.extra.ymlwith volume mount)source scripts/shell-helpers/clawdock-helpers.shclawdock-startdocker inspect openclaw-openclaw-gateway-1 | grep -A5 MountsExpected
Container has the home volume mounted at
/home/node.Actual (before fix)
"Volumes": null— no volume mounted.Evidence
_clawdock_compose()output with and withoutdocker-compose.extra.ymlHuman Verification (required)
_clawdock_composegenerates correctdocker compose -f ... -f ...args when extra file exists, and falls back to single-fwhen it does not.docker-compose.extra.yml(no-op, backward compatible).Compatibility / Migration
YesNoNoFailure Recovery (if this breaks)
scripts/shell-helpers/clawdock-helpers.shdocker-compose.extra.ymlis malformed,docker composewill report a parse error (same as runningdocker-setup.shoutput manually).Risks and Mitigations
None — the extra file is only included if it exists, and Docker Compose validates it on load.
🤖 Generated with Claude Code
Greptile Summary
Fixes
_clawdock_compose()to includedocker-compose.extra.yml(when present) via an additional-fflag, matching the behavior ofdocker-setup.sh. Previously, allclawdock-*helper commands silently dropped volume mounts defined in the extra compose file (generated forOPENCLAW_HOME_VOLUMEandOPENCLAW_EXTRA_MOUNTS).docker-compose.extra.ymlexistence before including it.clawdock-start,clawdock-stop,clawdock-shell, etc.) route through_clawdock_compose(), so this single change fixes all of them.Confidence Score: 5/5
Last reviewed commit: bb0a9ef