diff --git a/src/Testcontainers/Clients/ContainerConfigurationConverter.cs b/src/Testcontainers/Clients/ContainerConfigurationConverter.cs index 4d3ec077c..d47b0e362 100644 --- a/src/Testcontainers/Clients/ContainerConfigurationConverter.cs +++ b/src/Testcontainers/Clients/ContainerConfigurationConverter.cs @@ -148,9 +148,8 @@ public ToPortBindings() public override IEnumerable>> Convert([CanBeNull] IEnumerable> source) { - // https://github.com/moby/moby/pull/41805#issuecomment-893349240. return source?.Select(portBinding => new KeyValuePair>( - GetQualifiedPort(portBinding.Key), new[] { new PortBinding { HostIP = IPAddress.Any.ToString(), HostPort = portBinding.Value } })); + GetQualifiedPort(portBinding.Key), new[] { new PortBinding { HostPort = portBinding.Value } })); } } }