Skip to content

Commit f869194

Browse files
author
Matthew Fisher
committed
use DOCKER_HOST to connect to remote socket
The Docker client respects DOCKER_HOST to set the -H flag for the client. Using the same envvar makes it easier for development on platforms like OSX where DOCKER_HOST is recommended to connect to boot2docker. Signed-off-by: Matthew Fisher <matthewf@opdemand.com>
1 parent 83a2ea8 commit f869194

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

logspout.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func httpStreamer(w http.ResponseWriter, req *http.Request, logstream chan *Log,
128128
func main() {
129129
debugMode = getopt("DEBUG", "") != ""
130130
port := getopt("PORT", "8000")
131-
endpoint := getopt("DOCKER", "unix:///var/run/docker.sock")
131+
endpoint := getopt("DOCKER_HOST", "unix:///var/run/docker.sock")
132132
routespath := getopt("ROUTESPATH", "/var/lib/logspout")
133133

134134
client, err := docker.NewClient(endpoint)

0 commit comments

Comments
 (0)