Check Docker connection

This commit is contained in:
emile 2015-09-12 01:00:30 +02:00
parent d313da1156
commit 0ed748f5f6

View file

@ -66,6 +66,11 @@ func (provider *DockerProvider) Provide(configurationChan chan <- *Configuration
log.Fatalf("Failed to create a client for docker, error: %s", err)
} else {
provider.dockerClient = client
info, err := provider.dockerClient.Info()
if (err != nil){
log.Fatalf("Docker connection error %+v", err)
}
log.Debug("Docker info %=v", info)
dockerEvents := make(chan *docker.APIEvents)
if (provider.Watch) {
provider.dockerClient.AddEventListener(dockerEvents)