Is it possible to set a host name?


#1

I was wondering if there is a way to mimic the -h flag for docker run when running a container in CircleCI. I need to set the host name because we have a bunch of tests that check that name and then use it against apache configs that are set for certain patterns of URL. If I can’t set the host name, my tests won’t run properly in CircleCI.


#2

You could try Dockerising your app and then running it in your own Docker Compose. I know DC works, I am guessing whether setting the hostname does. Try it!