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
11 changes: 8 additions & 3 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
{
"image": "mcr.microsoft.com/devcontainers/go:dev-1.25",
"image": "golang:1.25.9",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Keep devcontainer running as non-root user

Switching the base image to golang:1.25.9 removes the default vscode user provided by the previous devcontainer image, so this container now runs as root unless a remoteUser is explicitly configured. In local Linux devcontainer setups, the postStartCommand (make install-tools) will create root-owned files in the bind-mounted repo (for example under bin/), which blocks normal host-side edits/cleanup and is a significant workflow regression. Please keep a devcontainer base that defines vscode or explicitly set up and use a non-root user.

Useful? React with 👍 / 👎.

"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": false
},
"ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {},
"ghcr.io/devcontainers-extra/features/kind:1": {},
"ghcr.io/devcontainers/features/node:1": {},
"ghcr.io/anthropics/devcontainer-features/claude-code:1.0": {}
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainer-community/devcontainer-features/yq:1": {},
"ghcr.io/clamoriniere/claude-devcontainer-features/claude-code:1.0.6": {}
},
"remoteUser": "vscode",
"mounts": [
"source=${localWorkspaceFolder}/.devcontainer/claude-data/,target=/home/vscode/.claude,type=bind"
],
Expand Down Expand Up @@ -36,5 +38,8 @@
"golang.Go"
]
}
},
"containerEnv": {
"CLAUDE_CONFIG_DIR": "/home/vscode/.claude"
}
}
Loading