feat: Add dind - #67
Open
Roemer wants to merge 3 commits into
Open
Conversation
Roemer
force-pushed
the
feature/dind
branch
4 times, most recently
from
July 30, 2026 16:23
1224d99 to
db1e7cc
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 29 out of 29 changed files in this pull request and generated no new comments.
Suppressed comments (4)
build/build.go:434
ExpandDevContainerFeatureVars()generates a new random${devcontainerId}on every call. When multiple mounts are present, this produces different volume names for each mount, so mounts that are intended to share the same devcontainerId (e.g., the two docker-in volumes) won’t match and can cause state to be split across volumes.
if len(featureSpec.Mounts) > 0 {
for _, mount := range featureSpec.Mounts {
runArgs = append(runArgs, "-v", fmt.Sprintf("%s:%s", ExpandDevContainerFeatureVars(mount.Source), mount.Target))
}
}
installer/system.go:106
OsInfo()parses/etc/os-releaseassuming every scanned line contains=. Blank lines or comments can makestrings.SplitN(..., "=", 2)return a 1-element slice, causing an index-out-of-range panic when accessingparts[1].
for scanner.Scan() {
parts := strings.SplitN(scanner.Text(), "=", 2)
// Remove surrounding quotes if present
val := strings.Trim(parts[1], `"`)
infoMap[parts[0]] = val
shared/docker/config.go:21
- If
_REMOTE_USER/_REMOTE_USER_HOMEare not set,filepath.Join("/home", userName)can resolve to/homeanduser.Lookup("")will fail. This makes config install brittle when the feature runs as root or when those env vars aren’t present.
userName := os.Getenv("_REMOTE_USER")
homeDir := os.Getenv("_REMOTE_USER_HOME")
if homeDir == "" {
homeDir = filepath.Join("/home", userName)
}
shared/docker/config.go:38
- The
strconv.Atoierrors for UID/GID are ignored. If parsing fails,uid/gidbecome 0 and the code may chown the Docker config to root unexpectedly.
uid, _ := strconv.Atoi(usr.Uid)
gid, _ := strconv.Atoi(usr.Gid)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.