Skip to content

Commit d8b01c8

Browse files
eoinfennessyclaude
andcommitted
fix: run build container as host user for DinD compatibility
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0e96a13 commit d8b01c8

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

build/run.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ else
1515
exit 1
1616
fi
1717

18+
# In DinD the container uid may differ from the host file owner,
19+
# so make build outputs writable by any user.
20+
chmod -R a+w "$REPO_ROOT/distribution" "$REPO_ROOT/Containerfile" 2>/dev/null || true
21+
1822
exec "$runtime" run --rm \
19-
--user "$(id -u):$(id -g)" \
2023
-v "$REPO_ROOT:/workspace:z" \
2124
-w /workspace \
2225
"$IMAGE" \

0 commit comments

Comments
 (0)