diff --git a/extensions/devservices/common/src/main/java/io/quarkus/devservices/common/ConfigureUtil.java b/extensions/devservices/common/src/main/java/io/quarkus/devservices/common/ConfigureUtil.java index fbd23fe8f2156..1ffa51b9ab7b3 100644 --- a/extensions/devservices/common/src/main/java/io/quarkus/devservices/common/ConfigureUtil.java +++ b/extensions/devservices/common/src/main/java/io/quarkus/devservices/common/ConfigureUtil.java @@ -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; @@ -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;