Problem
Images inherit CMD ["node"] from the Node.js base image. When used with Docker Compose-based devcontainers, overrideCommand defaults to false, so VS Code does not inject its keep-alive sleep loop. The node process exits immediately in non-interactive/detached mode, killing the container.
With "image" mode in devcontainer.json this isn't visible because overrideCommand defaults to true and VS Code auto-injects the keep-alive. But any Docker Compose consumer hits this.
Error
Container starts, VS Code connects briefly, then:
Exit code 137
Shell server terminated (code: 137, signal: null)
Error response from daemon: container ... is not running
docker inspect shows the container exited with code 0 (main process finished normally), not OOM.
Fix
Add to both Dockerfiles:
CMD ["sleep", "infinity"]
Since these images exist solely as devcontainer images, there's no reason to preserve the Node base image's default CMD. This makes the images work correctly regardless of whether consumers use "image" mode or Docker Compose.
Affected images
ghcr.io/gatezh/devcontainer-images/claude-code
ghcr.io/gatezh/devcontainer-images/claude-code-sandbox
Problem
Images inherit
CMD ["node"]from the Node.js base image. When used with Docker Compose-based devcontainers,overrideCommanddefaults tofalse, so VS Code does not inject its keep-alive sleep loop. Thenodeprocess exits immediately in non-interactive/detached mode, killing the container.With
"image"mode in devcontainer.json this isn't visible becauseoverrideCommanddefaults totrueand VS Code auto-injects the keep-alive. But any Docker Compose consumer hits this.Error
Container starts, VS Code connects briefly, then:
docker inspectshows the container exited with code 0 (main process finished normally), not OOM.Fix
Add to both Dockerfiles:
Since these images exist solely as devcontainer images, there's no reason to preserve the Node base image's default CMD. This makes the images work correctly regardless of whether consumers use
"image"mode or Docker Compose.Affected images
ghcr.io/gatezh/devcontainer-images/claude-codeghcr.io/gatezh/devcontainer-images/claude-code-sandbox