#17506: Fix Entrypoint in docker-compose
docker
stale
size: XS
Cluster:
Docker and Deployment Improvements
Fixes https://github.com/openclaw/openclaw/issues/17504 by moving `node dist/index.js` from `command` to `entrypoint`.
## Summary
Issue with the entrypoint when running `sudo docker compose up -d openclaw-gateway` : `error: unknown command 'dist/index.js'`
## Change Type (select all)
- [x] Bug fix
- [ ] Feature
- [ ] Refactor
- [ ] Docs
- [ ] Security hardening
- [ ] Chore/infra
## Scope (select all touched areas)
- [ ] Gateway / orchestration
- [ ] Skills / tool execution
- [ ] Auth / tokens
- [ ] Memory / storage
- [ ] Integrations
- [ ] API / contracts
- [ ] UI / DX
- [ ] CI/CD / infra
## Linked Issue/PR
- Closes [#17504 ](https://github.com/openclaw/openclaw/issues/17504)
## User-visible / Behavior Changes
None
## Security Impact (required)
- New permissions/capabilities? `No`
- Secrets/tokens handling changed? `No`
- New/changed network calls? `No`
- Command/tool execution surface changed? `No`
- Data access scope changed? `No`
## Repro + Verification
cf https://github.com/openclaw/openclaw/issues/17504
## Human Verification (required)
What you personally verified (not just CI), and how:
- Changed the docker-compose on my repo, has fixed the issue
## Compatibility / Migration
- Backward compatible? `Yes`
- Config/env changes? `No`
- Migration needed? `No`
## Risks and Mitigations
`None`.
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
Fixed Docker Compose configuration for `openclaw-gateway` service by moving `node dist/index.js` from `command` to `entrypoint`. This resolves the "unknown command 'dist/index.js'" error when running `docker compose up -d openclaw-gateway`. The configuration now matches the working `openclaw-cli` service pattern.
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with minimal risk
- The fix is a straightforward Docker Compose configuration correction that aligns with the existing working pattern used by `openclaw-cli`. The change is minimal, well-tested by the author, and addresses a clear bug without introducing new functionality or modifying application logic.
- No files require special attention
<sub>Last reviewed commit: ea73fa4</sub>
<!-- greptile_other_comments_section -->
<sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#12504: fix: allow docker cli container to connect to gateway
by bvanderdrift · 2026-02-09
85.0%
#8050: fix: docker hardening
by christopherbarnett96 · 2026-02-03
82.6%
#17151: fix: add npm link to fix CLI permission denied (exit 127)
by sskyu · 2026-02-15
82.2%
#4695: Fixed the default CLI image to use published GHCR image
by TASMAYU · 2026-01-30
81.7%
#17916: [ fix ] : correct config directory path during onboarding
by Dijo-404 · 2026-02-16
81.6%
#13950: fix(docker): add browser sidecar service and health checks
by n24q02m · 2026-02-11
81.0%
#23313: feat(docker): add optional build-arg OPENCLAW_INSTALL_DOCKER_CLI to...
by zhuxuwei88-bot · 2026-02-22
80.6%
#3965: Fix Docker Compose configuration for moltbot deployment
by YoByron · 2026-01-29
80.4%
#9999: Docker: fix token mismatch and add dev setup workflow
by benclarkeio · 2026-02-06
80.4%
#9992: Docker: Fixed port mapping so ports publish when not stated
by Lightmean03 · 2026-02-06
79.6%