Dockerfile

This commit is contained in:
emile 2015-09-12 01:30:28 +02:00
parent 0ed748f5f6
commit 4232cccd75
2 changed files with 5 additions and 2 deletions

3
Dockerfile.run Normal file
View file

@ -0,0 +1,3 @@
FROM scratch
ADD traefik /
CMD ["/traefik"]

View file

@ -66,11 +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()
_, err := provider.dockerClient.Info()
if (err != nil){
log.Fatalf("Docker connection error %+v", err)
}
log.Debug("Docker info %=v", info)
log.Debug("Docker connection established")
dockerEvents := make(chan *docker.APIEvents)
if (provider.Watch) {
provider.dockerClient.AddEventListener(dockerEvents)