Use first index for ports

This commit is contained in:
Guilhem Lettron 2016-11-02 17:31:27 +01:00
parent 5641af437e
commit 85a20b9a39
4 changed files with 24 additions and 11 deletions

View file

@ -364,10 +364,6 @@ func (provider *Docker) containerFilter(container dockerData) bool {
log.Debugf("Filtering container without port and no traefik.port label %s", container.Name)
return false
}
if len(container.NetworkSettings.Ports) > 1 && err != nil {
log.Debugf("Filtering container with more than 1 port and no traefik.port label %s", container.Name)
return false
}
if !isContainerEnabled(container, provider.ExposedByDefault) {
log.Debugf("Filtering disabled container %s", container.Name)