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 Jul 14, 2019
1 parent 4fdf830 commit 837410b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/minikube/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ func configureHost(h *host.Host, e *engine.Options) error {
if err := h.ConfigureAuth(); err != nil {
return &util.RetriableError{Err: errors.Wrap(err, "Error configuring auth on host")}
}
if h.Driver.DriverName() == constants.DriverGeneric {
if _, err := h.RunSSHCommand(fmt.Sprintf("sudo usermod -aG docker %s", h.Driver.GetSSHUsername())); err != nil {
return errors.Wrap(err, "usermod")
}
}
return ensureSyncedGuestClock(h)
}

Expand Down

0 comments on commit 837410b

Please sign in to comment.