GithubHelp home page GithubHelp logo

nishgowda / docktor Goto Github PK

View Code? Open in Web Editor NEW
42.0 2.0 2.0 92.5 MB

Health checking and security implementations for running Docker containers and images

License: MIT License

Go 89.36% Makefile 3.01% Shell 2.05% Python 5.57%
docker health-check docker-containers go

docktor's Issues

Not Working

Hi,
First of all I would like to congratulate you on this idea. It will be a very useful tool.
I tried using it just now but I can't get it to work. It might be an error on my part.

So, I cloned the repo and ran make build inside the directory. Then I moved to the bin directory and tried running ./docktor healthcheck --c drop.

I got the following errors:

goroutine 1 [running]:
github.com/nishgowda/docktor/lib/healthcheck.PerformHealthCheck(0xc000267e50, 0x1, 0x1, 0x4, 0xac7982, 0x4, 0x5e1c00)
	/home/inamati/docktor/lib/healthcheck/healthcheck.go:54 +0x86b
github.com/nishgowda/docktor/bin/cmd.glob..func3(0xf93200, 0xc0001fd680, 0x0, 0x2)
	/home/inamati/docktor/bin/cmd/healthcheck.go:17 +0x49
github.com/spf13/cobra.(*Command).execute(0xf93200, 0xc0001fd660, 0x2, 0x2, 0xf93200, 0xc0001fd660)
	/home/inamati/go/pkg/mod/github.com/spf13/[email protected]/command.go:846 +0x2aa
github.com/spf13/cobra.(*Command).ExecuteC(0xf934a0, 0x0, 0x52e00, 0xc000090058)
	/home/inamati/go/pkg/mod/github.com/spf13/[email protected]/command.go:950 +0x349
github.com/spf13/cobra.(*Command).Execute(...)
	/home/inamati/go/pkg/mod/github.com/spf13/[email protected]/command.go:887
github.com/nishgowda/docktor/bin/cmd.Execute(...)
	/home/inamati/docktor/bin/cmd/root.go:26
main.main()
	/home/inamati/docktor/bin/main.go:8 +0x2e

Running the server didn't work either it just hangs.

Can you help?

Build error

After executing the command 'make build', log returns

/usr/local/go/src/github.com/nishgowda/docktor/lib/healthcheck/healthcheck.go:11:2: cannot find package "github.com/docker/docker/api/types/container" in any of: /usr/local/go/src/vendor/github.com/docker/docker/api/types/container (vendor tree) /usr/local/go/src/github.com/docker/docker/api/types/container (from $GOROOT) /home/nlo/go/src/github.com/docker/docker/api/types/container (from $GOPATH) /usr/local/go/src/github.com/nishgowda/docktor/lib/healthcheck/healthcheck.go:12:2: cannot find package "github.com/docker/docker/api/types/filters" in any of: /usr/local/go/src/vendor/github.com/docker/docker/api/types/filters (vendor tree) /usr/local/go/src/github.com/docker/docker/api/types/filters (from $GOROOT) /home/nlo/go/src/github.com/docker/docker/api/types/filters (from $GOPATH) ../../docker/docker/registry/registry.go:23:2: cannot find package "github.com/docker/docker/autogen/dockerversion" in any of: /home/nlo/go/src/github.com/docker/docker/vendor/github.com/docker/docker/autogen/dockerversion (vendor tree) /usr/local/go/src/github.com/docker/docker/autogen/dockerversion (from $GOROOT) /home/nlo/go/src/github.com/docker/docker/autogen/dockerversion (from $GOPATH) /usr/local/go/src/github.com/nishgowda/docktor/lib/heal/heal.go:13:2: cannot find package "github.com/docker/docker/client" in any of: /usr/local/go/src/vendor/github.com/docker/docker/client (vendor tree) /usr/local/go/src/github.com/docker/docker/client (from $GOROOT) /home/nlo/go/src/github.com/docker/docker/client (from $GOPATH) /usr/local/go/src/github.com/nishgowda/docktor/lib/healthcheck/healthcheck.go:14:2: cannot find package "github.com/docker/go-connections/nat" in any of: /usr/local/go/src/vendor/github.com/docker/go-connections/nat (vendor tree) /usr/local/go/src/github.com/docker/go-connections/nat (from $GOROOT) /home/nlo/go/src/github.com/docker/go-connections/nat (from $GOPATH) /usr/local/go/src/github.com/nishgowda/docktor/bin/cmd/root.go:6:2: cannot find package "github.com/mitchellh/go-homedir" in any of: /usr/local/go/src/vendor/github.com/mitchellh/go-homedir (vendor tree) /usr/local/go/src/github.com/mitchellh/go-homedir (from $GOROOT) /home/nlo/go/src/github.com/mitchellh/go-homedir (from $GOPATH) /usr/local/go/src/github.com/nishgowda/docktor/bin/cmd/autoheal.go:7:2: cannot find package "github.com/spf13/cobra" in any of: /usr/local/go/src/vendor/github.com/spf13/cobra (vendor tree) /usr/local/go/src/github.com/spf13/cobra (from $GOROOT) /home/nlo/go/src/github.com/spf13/cobra (from $GOPATH) /usr/local/go/src/github.com/nishgowda/docktor/bin/cmd/root.go:8:2: cannot find package "github.com/spf13/viper" in any of: /usr/local/go/src/vendor/github.com/spf13/viper (vendor tree) /usr/local/go/src/github.com/spf13/viper (from $GOROOT) /home/nlo/go/src/github.com/spf13/viper (from $GOPATH) Makefile:9: recipe for target 'build' failed make: [build] Error 1 (ignored)

What to do to fix?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.