Skip to content

Commit

Permalink
fix: run socat container as root (#1365)
Browse files Browse the repository at this point in the history
Signed-off-by: Toma Puljak <[email protected]>
  • Loading branch information
Tpuljak authored Nov 25, 2024
1 parent ea2db7f commit be44f1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/docker/create_devcontainer.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ func (d *DockerClient) ensureDockerSockForward(builderImage string, builderConta
c, err := d.apiClient.ContainerCreate(ctx, &container.Config{
Image: builderImage,
Entrypoint: []string{"socat"},
User: "root",
Cmd: []string{"tcp-listen:2375,fork,reuseaddr", "unix-connect:/var/run/docker.sock"},
}, &container.HostConfig{
Privileged: true,
Expand Down

0 comments on commit be44f1d

Please sign in to comment.