fix(clawdock): include docker-compose.extra.yml in helper commands (#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 #17083

Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
zerone0x
2026-02-19 19:40:47 +08:00
committed by GitHub
parent 3feb7fc3a3
commit 466a1e1cdb

View File

@@ -136,7 +136,11 @@ _clawdock_ensure_dir() {
# Wrapper to run docker compose commands
_clawdock_compose() {
_clawdock_ensure_dir || return 1
command docker compose -f "${CLAWDOCK_DIR}/docker-compose.yml" "$@"
local compose_args=(-f "${CLAWDOCK_DIR}/docker-compose.yml")
if [[ -f "${CLAWDOCK_DIR}/docker-compose.extra.yml" ]]; then
compose_args+=(-f "${CLAWDOCK_DIR}/docker-compose.extra.yml")
fi
command docker compose "${compose_args[@]}" "$@"
}
_clawdock_read_env_token() {