nishgowda / docktor Goto Github PK
View Code? Open in Web Editor NEWHealth checking and security implementations for running Docker containers and images
License: MIT License
Health checking and security implementations for running Docker containers and images
License: MIT License
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?
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?
This is probably not the intended outcome:
$ ./bin/docktor scan --i nginx --f nginx.out
$ cat nginx.out
Docker Scan relies upon access to Snyk, a third party provider, do you consent to proceed using Snyk? (y/N)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.