Skip to content

Commit

Permalink
simplify docker for mac detection
Browse files Browse the repository at this point in the history
  • Loading branch information
bonifaido committed Jun 14, 2019
1 parent 938ee67 commit 9264883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cli/command/controlplane/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func isInteractive() bool {

func runInternal(command, valuesFile, kubeconfigFile, tfdir string) error {

infoCmd := exec.Command("docker", "info", "-f", "{{eq .OperatingSystem \"Docker Desktop\"}}")
infoCmd := exec.Command("docker", "info", "-f", "{{or (eq .OperatingSystem \"Docker Desktop\") (eq .OperatingSystem \"Docker for Mac\")}}")

infoOuput, err := infoCmd.Output()
if err != nil {
Expand Down

0 comments on commit 9264883

Please sign in to comment.