Don't fail on warnings from the docker activeness check

This commit is contained in:
Lucas Käldström 2017-04-07 17:56:22 +03:00
parent 4fa902a915
commit 23395408b1
No known key found for this signature in database
GPG Key ID: 600FEFBBD0D40D21

View File

@ -105,7 +105,7 @@ func (r *Reset) Run(out io.Writer) error {
}
dockerCheck := preflight.ServiceCheck{Service: "docker", CheckIfActive: true}
if warnings, errors := dockerCheck.Check(); len(warnings) == 0 && len(errors) == 0 {
if _, errors := dockerCheck.Check(); len(errors) == 0 {
fmt.Println("[reset] Removing kubernetes-managed containers")
if err := exec.Command("sh", "-c", "docker ps -a --filter name=k8s_ -q | xargs -r docker rm --force --volumes").Run(); err != nil {
fmt.Println("[reset] Failed to stop the running containers")