Skip to content

Commit cb74915

Browse files
committed
capd: don't add host ports to exposed ports of containers
This fixes an issue when running capd with podmans docker compatibility mode. And it's also incorrect in general.
1 parent ae215d6 commit cb74915

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)