diff --git a/bin/go-proxy b/bin/go-proxy index c5d8c4f..ded3ea5 100755 Binary files a/bin/go-proxy and b/bin/go-proxy differ diff --git a/src/go-proxy/docker_provider.go b/src/go-proxy/docker_provider.go index 5994deb..cec8699 100755 --- a/src/go-proxy/docker_provider.go +++ b/src/go-proxy/docker_provider.go @@ -46,7 +46,9 @@ func (p *Provider) getContainerProxyConfigs(container types.Container, clientIP if config.Port == "" && clientIP != "" { for _, port := range container.Ports { config.Port = fmt.Sprintf("%d", port.PublicPort) - break + if config.Port != "0" { + break + } } } else if config.Port == "" { // usually the smaller port is the http one @@ -63,7 +65,7 @@ func (p *Provider) getContainerProxyConfigs(container types.Container, clientIP } } } - if config.Port == "" { + if config.Port == "" || config.Port == "0" { // no ports exposed or specified p.Logf("Build", "no ports exposed for %s, ignored", container_name) continue