-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong container name flag #51
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At work, my local machine is able to make service-to-service REST calls as intended referencing other containers through their name. Unfortunately it isn't working in CI.
It turns out this is an oddity in our machines, not CI. As far as I have been able to figure out, Docker's DNS settings will use
--hostname
to resolve the host by name for that container itself, but the proper way to set it for the rest of the network appears to be--network-alias
For some reason hostname works on our local, but whatever we've got on CI appears to be more strict.Touchstone is using
--hostname
; I believe it should be updated to use--network-alias
for maximum compatibility.A workaround for now is to add
--network-alias <your service name>
to docker_options in yourtouchstone.yml
file.The text was updated successfully, but these errors were encountered: