You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d2c7574
Browse filesBrowse the repository at this point in the historyBrowse files
Copier update: support Clone Repository in Container Volume
Retarget the devcontainer workspace bind mount via WORKSPACE_MOUNT_TARGET
so it works when VS Code clones the repo into a Docker volume.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: .devcontainer/initialize-command.sh
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,15 @@ if [ -n "$CODESPACES" ] && [ "$CODESPACES" = "true" ]; then
7
7
docker image prune --all --force
8
8
fi
9
9
10
+
# "Clone Repository in Container Volume" runs this inside a bootstrap container that has the cloned volume mounted at /workspaces.
11
+
# The compose bind mount of `..` then points at a path the Docker host doesn't have, so it gets retargeted onto /workspaces where VS Code's own volume mount replaces it.
Copy file name to clipboardExpand all lines: template/.devcontainer/initialize-command.sh
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,15 @@ if [ -n "$CODESPACES" ] && [ "$CODESPACES" = "true" ]; then
7
7
docker image prune --all --force
8
8
fi
9
9
10
+
# "Clone Repository in Container Volume" runs this inside a bootstrap container that has the cloned volume mounted at /workspaces.
11
+
# The compose bind mount of `..` then points at a path the Docker host doesn't have, so it gets retargeted onto /workspaces where VS Code's own volume mount replaces it.
0 commit comments