Skip to content

Commit 8e8650c

Browse files
authored
Merge pull request #10657 from schrej/fix/capd-dont-expose-host-ports
🐛 capd: don't add host ports to exposed ports of containers
2 parents 7464233 + cb74915 commit 8e8650c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/infrastructure/container/docker.go

-1
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,6 @@ func configurePortMappings(portMappings []PortMapping, config *dockercontainer.C
727727
}
728728
hostConfig.PortBindings[port] = append(hostConfig.PortBindings[port], mapping)
729729
exposedPorts[port] = struct{}{}
730-
exposedPorts[nat.Port(fmt.Sprintf("%d/tcp", pm.HostPort))] = struct{}{}
731730
}
732731

733732
config.ExposedPorts = exposedPorts

0 commit comments

Comments
 (0)