Is it possible to set a host name?

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.

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!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.