Skip to content

Commit

Permalink
docker: workaround permission issue
Browse files Browse the repository at this point in the history
  • Loading branch information
abiosoft committed Nov 11, 2023
1 parent f2dbdcf commit c564330
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions environment/container/docker/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ func (d dockerRuntime) Provision(ctx context.Context) error {

// validate docker socket access
a.Add(func() error {
if err := d.guest.RunQuiet("sh", "-c", `cat /etc/group | grep '^docker:' | grep ":${USER}\$"`); err == nil {
return nil
}
return d.guest.RunQuiet("sh", "-c", "sudo chown ${USER} /var/run/docker.sock")
})

Expand Down

0 comments on commit c564330

Please sign in to comment.