We are using GenericContainer and we need to set a specific hostname for our container. Right now, we are using withExtraHosts and hardcoding the ip address that the container always starts with. This creates 2 entries in /etc/hosts with the same ip address. We'd rather have a function withHostName that leverages
dockerClient.createContainerCmd().withHostName
We are using GenericContainer and we need to set a specific hostname for our container. Right now, we are using
withExtraHostsand hardcoding the ip address that the container always starts with. This creates 2 entries in/etc/hostswith the same ip address. We'd rather have a functionwithHostNamethat leverages