This is an automated email from the ASF dual-hosted git repository.

zhangke pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/skywalking-infra-e2e.git


The following commit(s) were added to refs/heads/main by this push:
     new a940d8b  fix docker daemon check (#12)
a940d8b is described below

commit a940d8bb50e293c9487bd9a541e8d67fe721a700
Author: Humbert Zhang <[email protected]>
AuthorDate: Sat Mar 6 15:32:44 2021 +0800

    fix docker daemon check (#12)
---
 commands/setup/setup.go | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/commands/setup/setup.go b/commands/setup/setup.go
index 146644f..3490d37 100644
--- a/commands/setup/setup.go
+++ b/commands/setup/setup.go
@@ -21,6 +21,8 @@ package setup
 import (
        "fmt"
 
+       "github.com/apache/skywalking-infra-e2e/internal/util"
+
        "github.com/apache/skywalking-infra-e2e/internal/components/setup"
        "github.com/apache/skywalking-infra-e2e/internal/config"
        "github.com/apache/skywalking-infra-e2e/internal/constant"
@@ -33,6 +35,10 @@ var Setup = &cobra.Command{
        Use:   "setup",
        Short: "",
        RunE: func(cmd *cobra.Command, args []string) error {
+               if err := util.CheckDockerDaemon(); err != nil {
+                       return err
+               }
+
                if err := setupAccordingE2E(); err != nil {
                        return fmt.Errorf("[Setup] %s", err)
                }

Reply via email to