Fetch docker version, to check things are working

This commit is contained in:
Bryan Boreham committed 2014-11-05 16:57:59 +00:00
1 parent 5d8045f5ee
commit 91b6719924
1 file changed
+4 -1
+4 -1
View File
@@ -14,11 +14,14 @@ func StartUpdater(apiPath string, zone Zone) error {
client, err := docker.NewClient(apiPath)
checkError(err, apiPath)
env, err := client.Version()
checkError(err, apiPath)
events := make(chan *docker.APIEvents)
err = client.AddEventListener(events)
checkError(err, apiPath)
Info.Printf("Using Docker API on %s", apiPath)
Info.Printf("Using Docker API on %s: %v", apiPath, env)
go func() {
for event := range events {