Skip to content

Commit

Permalink
Generic driver does not add user to docker group
Browse files Browse the repository at this point in the history
  • Loading branch information
afbjorklund committed Jan 6, 2021
1 parent c076669 commit 7c5ba62
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/minikube/machine/fix.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,12 @@ func fixHost(api libmachine.API, cc *config.ClusterConfig, n *config.Node) (*hos
return h, nil
}

if h.Driver.DriverName() == driver.Generic {
if _, err := h.RunSSHCommand(fmt.Sprintf("sudo usermod -aG docker %s", h.Driver.GetSSHUsername())); err != nil {
return h, errors.Wrap(err, "usermod")
}
}

return h, ensureSyncedGuestClock(h, driverName)
}

Expand Down

0 comments on commit 7c5ba62

Please sign in to comment.