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
Add --group-add for Docker socket access when running gateway as non-root #26749
PR #26658 adds --user $(id -u):$(id -g) to the MCP gateway Docker run command so log files are readable by downstream steps. However, the container process only inherits the primary GID — supplementary groups (like docker) from the host are not carried into the container.
This means the gateway container cannot access the bind-mounted Docker socket (/var/run/docker.sock), which is typically owned by root:docker. Without socket access, the gateway cannot launch backend MCP server containers.
Proposed Fix
Add --group-add to dynamically include the Docker socket's owning GID:
// In mcp_setup_generator.go, after the --user line:containerCmd.WriteString(" --group-add $(stat -c '%g' /var/run/docker.sock)")
Activity