Skip to content

Commit

Permalink
Merge pull request #26422 from geoand/podman-dns
Browse files Browse the repository at this point in the history
Attempt to fix podman DNS issue
  • Loading branch information
geoand authored Jun 29, 2022
2 parents a58d221 + 3240216 commit a51cc2e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.io.InputStream;
import java.io.UncheckedIOException;
import java.util.Collections;
import java.util.Locale;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
Expand Down Expand Up @@ -41,7 +42,7 @@ public static String configureSharedNetwork(GenericContainer<?> container, Strin
container.setNetwork(Network.SHARED);
}

String hostName = hostNamePrefix + "-" + Base58.randomString(5);
String hostName = (hostNamePrefix + "-" + Base58.randomString(5)).toLowerCase(Locale.ROOT);
container.setNetworkAliases(Collections.singletonList(hostName));

return hostName;
Expand Down

0 comments on commit a51cc2e

Please sign in to comment.