Fetch docker version, to check things are working
This commit is contained in:
1 parent
5d8045f5ee
commit
91b6719924
1 file changed
+4
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user