I have to create windows container image with our application installed. Our application is a legacy one and it uses hostname in several places during installation. The docker build command doesnot have an option to pass the hostname. So, we are currently stuck at a point where when we run a container with the image created, our application fails to run as its expecting the hostname to be the generated name during the image creation time and not the one we pass with docker run command. I tried to change the hostname within the container before installing our application using suggestions in this query.But,it did not work. I wanted to understand if there is a way we can change the hostname from within the windows container?