Dockerfile
This commit is contained in:
parent
0ed748f5f6
commit
4232cccd75
2 changed files with 5 additions and 2 deletions
3
Dockerfile.run
Normal file
3
Dockerfile.run
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
FROM scratch
|
||||||
|
ADD traefik /
|
||||||
|
CMD ["/traefik"]
|
|
@ -66,11 +66,11 @@ func (provider *DockerProvider) Provide(configurationChan chan <- *Configuration
|
||||||
log.Fatalf("Failed to create a client for docker, error: %s", err)
|
log.Fatalf("Failed to create a client for docker, error: %s", err)
|
||||||
} else {
|
} else {
|
||||||
provider.dockerClient = client
|
provider.dockerClient = client
|
||||||
info, err := provider.dockerClient.Info()
|
_, err := provider.dockerClient.Info()
|
||||||
if (err != nil){
|
if (err != nil){
|
||||||
log.Fatalf("Docker connection error %+v", err)
|
log.Fatalf("Docker connection error %+v", err)
|
||||||
}
|
}
|
||||||
log.Debug("Docker info %=v", info)
|
log.Debug("Docker connection established")
|
||||||
dockerEvents := make(chan *docker.APIEvents)
|
dockerEvents := make(chan *docker.APIEvents)
|
||||||
if (provider.Watch) {
|
if (provider.Watch) {
|
||||||
provider.dockerClient.AddEventListener(dockerEvents)
|
provider.dockerClient.AddEventListener(dockerEvents)
|
||||||
|
|
Loading…
Reference in a new issue