2015-08-18 04:44:02 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import "fmt"
|
|
|
|
|
|
|
|
type HelpCommand struct {
|
|
|
|
// nothing yet
|
|
|
|
}
|
|
|
|
|
|
|
|
var helpCommand HelpCommand
|
|
|
|
|
|
|
|
func (x *HelpCommand) Execute(args []string) error {
|
2015-08-18 15:33:22 +02:00
|
|
|
fmt.Println(`Dockviz: Visualizing Docker Data
|
|
|
|
|
|
|
|
Connecting to Docker:
|
|
|
|
|
|
|
|
Dockviz supports connecting to the Docker daemon directly. It defaults to
|
|
|
|
'unix:///var/run/docker.sock', but respects the following as well:
|
|
|
|
|
|
|
|
* The 'DOCKER_HOST', 'DOCKER_CERT_PATH', and 'DOCKER_TLS_VERIFY' environment
|
|
|
|
variables, as set up by boot2docker or docker-machine.
|
|
|
|
* Command line arguments (e.g. '--tlscacert'), like those that Docker itself
|
|
|
|
supports.
|
|
|
|
|
|
|
|
Dockviz also supports receiving Docker image or container json data on standard
|
|
|
|
input: curl -s http://localhost:4243/images/json?all=1 | dockviz images --tree
|
|
|
|
|
|
|
|
Visualizing:
|
|
|
|
|
|
|
|
Dockviz can visualize both images and containers. For more information on the
|
|
|
|
options each subcommand supports, run them with the '--help' flag (e.g.
|
|
|
|
'dockviz images --help').
|
|
|
|
`)
|
2015-08-18 04:44:02 +02:00
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
parser.AddCommand("help",
|
2015-08-18 15:33:22 +02:00
|
|
|
"Help for dockviz.",
|
2015-08-18 04:44:02 +02:00
|
|
|
"",
|
|
|
|
&helpCommand)
|
|
|
|
}
|