Crash when Docker isn't started · Issue #64 · wagoodman/dive (original) (raw)
When trying to run dive
without Docker running, it crashes:
panic: exit status 1
goroutine 1 [running]:
github.com/wagoodman/dive/utils.DiscoverDockerVersion(0x1545440, 0x0)
/home/wagoodman/go/src/github.com/wagoodman/dive/utils/docker.go:42 +0x18d
github.com/wagoodman/dive/image.InitializeData(0x7ffeefbffcb5, 0x1c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/home/wagoodman/go/src/github.com/wagoodman/dive/image/image.go:202 +0xf2
github.com/wagoodman/dive/cmd.analyze(0x1857c80, 0xc420291c90, 0x1, 0x1)
/home/wagoodman/go/src/github.com/wagoodman/dive/cmd/analyze.go:36 +0x119
github.com/spf13/cobra.(*Command).execute(0x1857c80, 0xc4200a8010, 0x1, 0x1, 0x1857c80, 0xc4200a8010)
/home/wagoodman/go/src/github.com/spf13/cobra/command.go:766 +0x2c1
github.com/spf13/cobra.(*Command).ExecuteC(0x1857c80, 0x2, 0x19416c8, 0x0)
/home/wagoodman/go/src/github.com/spf13/cobra/command.go:852 +0x30a
github.com/spf13/cobra.(*Command).Execute(0x1857c80, 0xc4201cdf78, 0xc4201cdf58)
/home/wagoodman/go/src/github.com/spf13/cobra/command.go:800 +0x2b
github.com/wagoodman/dive/cmd.Execute()
/home/wagoodman/go/src/github.com/wagoodman/dive/cmd/root.go:30 +0x2d
main.main()
/home/wagoodman/go/src/github.com/wagoodman/dive/main.go:38 +0xad