Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@

"source=${localEnv:HOME}/.claude,target=/home/${localEnv:USER}/.claude,type=bind,consistency=cached",
"source=${localEnv:HOME}/.claude.json,target=/home/${localEnv:USER}/.claude.json,type=bind,consistency=cached",
"source=${localEnv:HOME}/.claude-profiles,target=/home/${localEnv:USER}/.claude-profiles,type=bind,consistency=cached",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Make the Claude profiles bind mount optional

When a developer opens this devcontainer on a host that has the existing Claude files but has not created ~/.claude-profiles, this new bind mount prevents the container from starting. I checked the Dev Container metadata reference and mounts strings use Docker --mount semantics; Docker rejects missing bind sources unless bind-create-src is used, so this turns an optional profile directory into a required local prerequisite.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep Claude profile bind mount optional

For hosts that already have ~/.claude and ~/.claude.json but have not created the non-standard ~/.claude-profiles directory, this new required bind mount prevents the dev container from starting: the Dev Containers metadata reference says mounts entries use Docker CLI --mount syntax, and Docker's bind-mount docs state that --mount errors when the source path does not exist. Please create the directory in initializeCommand or only add this mount when the host path exists.

Useful? React with 👍 / 👎.

"source=${localEnv:HOME}/.codex,target=/home/${localEnv:USER}/.codex,type=bind,consistency=cached",
"source=${localEnv:HOME}/.config/ledgerlinc/secrets,target=/home/${localEnv:USER}/.config/ledgerlinc/secrets,type=bind,readonly",
"source=${localEnv:HOME}/.gemini,target=/home/${localEnv:USER}/.gemini,type=bind,consistency=cached",
Expand Down