Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bridge/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down