diff --git a/bridge/bridge.go b/bridge/bridge.go index 673605df6..8a6f3021c 100644 --- a/bridge/bridge.go +++ b/bridge/bridge.go @@ -179,7 +179,8 @@ func (b *Bridge) add(containerId string, quiet bool) { ports := make(map[string]ServicePort) // Extract configured host port mappings, relevant when using --net=host - for port, published := range container.HostConfig.PortBindings { + for port, _ := range container.Config.ExposedPorts { + published := []dockerapi.PortBinding{ {"0.0.0.0", port.Port()}, } ports[string(port)] = servicePort(container, port, published) }