Browse Source

Merge pull request #38685 from yongtang/go-vet

Fix go-vet issue
Sebastiaan van Stijn 6 năm trước cách đây
mục cha
commit
e6fe7f8f29
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      cmd/dockerd/daemon.go

+ 1 - 0
cmd/dockerd/daemon.go

@@ -164,6 +164,7 @@ func (cli *DaemonCli) start(opts *daemonOptions) (err error) {
 	if cli.Config.ContainerdAddr == "" && runtime.GOOS != "windows" {
 		systemContainerdAddr, ok, err := systemContainerdRunning(cli.Config.IsRootless())
 		if err != nil {
+			cancel()
 			return errors.Wrap(err, "could not determine whether the system containerd is running")
 		}
 		if !ok {