From da321436bb1941160b04696b9997f73d0fce7a07 Mon Sep 17 00:00:00 2001 From: Marcos Diez Date: Thu, 18 Apr 2019 16:39:32 -0300 Subject: [PATCH 1/2] we should sudo systemctl start docker to start docker instead of restart it --- pkg/minikube/cruntime/docker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/minikube/cruntime/docker.go b/pkg/minikube/cruntime/docker.go index 504ca255fcb7..d5ce6856312c 100644 --- a/pkg/minikube/cruntime/docker.go +++ b/pkg/minikube/cruntime/docker.go @@ -73,7 +73,7 @@ func (r *Docker) Enable() error { if err := disableOthers(r, r.Runner); err != nil { glog.Warningf("disableOthers: %v", err) } - return r.Runner.Run("sudo systemctl restart docker") + return r.Runner.Run("sudo systemctl start docker") } // Disable idempotently disables Docker on a host From 39d7dafb7849426d771972cbf931d5362c92fce4 Mon Sep 17 00:00:00 2001 From: Marcos Diez Date: Thu, 18 Apr 2019 22:37:41 -0300 Subject: [PATCH 2/2] fix failing test --- pkg/minikube/cruntime/cruntime_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/minikube/cruntime/cruntime_test.go b/pkg/minikube/cruntime/cruntime_test.go index 194c4a5b1c21..7a3cdfe267b8 100644 --- a/pkg/minikube/cruntime/cruntime_test.go +++ b/pkg/minikube/cruntime/cruntime_test.go @@ -381,7 +381,7 @@ func TestEnable(t *testing.T) { want map[string]serviceState }{ {"docker", map[string]serviceState{ - "docker": Restarted, + "docker": Running, "docker.socket": Running, "containerd": Exited, "crio": Exited,