Skip to content

fix: drop host bind mount from sibling-services so Clone-in-Volume works#2

Open
arv wants to merge 2 commits into
mainfrom
fix/volume-workspace
Open

fix: drop host bind mount from sibling-services so Clone-in-Volume works#2
arv wants to merge 2 commits into
mainfrom
fix/volume-workspace

Conversation

@arv

@arv arv commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

What

Removes the ..:/workspaces/<app>:cached host bind from the sibling-services template's dev service and bumps it to 1.1.0. Documents "Clone Repository in Container Volume…" as the entry point (README + NOTES).

Why

On a machine with only Docker + VS Code (no host git checkout), Clone-in-Volume is the only way in — and the host bind breaks it:

Error response from daemon: mounts denied:
The path /workspaces/<app> is not shared from the host and is not known to Docker.

Clone-in-Volume puts the repo in a Docker volume mounted at /workspaces. For Compose dev containers the tooling does not inject a workspace mount in the local-folder case, so the bind in the compose file is the only conflict. Dropping it makes the bare-machine flow work; the tradeoff is that the source lives in the repo volume (edited through VS Code) rather than on the host filesystem.

Same fix already applied to rocicorp/mono#6120 and rocicorp/hello-zero#62, verified by replicating the Clone-in-Volume end state: workspace boots, sees the repo, no Docker inside, reaches Postgres siblings by service name.

🤖 Generated with Claude Code

arv and others added 2 commits June 12, 2026 10:24
Grant contents: write so devcontainers/action can create the
template_<id>_<version> tags automatically instead of failing with a
warning.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Bumps sibling-services to 1.1.0. "Clone Repository in Container Volume"
mounts the cloned repo volume at /workspaces; a ..:/workspaces/<app> host
bind breaks that flow on a machine with no host checkout (mounts denied),
and Dev Containers tooling does not inject a workspace mount for Compose
configs. Rely on the injected volume and document Clone-in-Volume as the
entry point.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions github-actions Bot requested a review from cesara June 12, 2026 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant