From 1f8a6a6f0c6aeddefce456ad22c83b3b58818110 Mon Sep 17 00:00:00 2001 From: fabianlee Date: Tue, 23 May 2017 23:16:24 +0000 Subject: [PATCH] updated documentation to force statically linked build, example for remote docker client sending DOCKER_HOST --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d9fd954..a2e8cca 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,8 @@ $ dockviz images -t -i -c 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](http://boot2docker.io/) or [docker-machine](https://docs.docker.com/machine/). + * For example: docker run -e DOCKER_HOST='tcp://127.0.0.1:2375' nate/dockviz + * 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. @@ -206,6 +208,8 @@ See the [releases](https://github.com/justone/dockviz/releases) area for binarie # Build ```bash -go get ./... +# force static compilation +export CGO_ENABLED=0 +go get go build ```