Skip to content

Communicate from service BACK to job container #25562

Answered by dnorth98
colinhowetab asked this question in Actions
Discussion options

You must be logged in to vote

Resurrecting this because I had exactly the same problem (and with chromedriver too).  Figure it will be handy to put in a solution

I found that this works to give the container a name (in this example, the hostname becomes “mainservice”).  You can then acess it using Docker networking.

container:
      image: ruby:2.6.5
      options: --network-alias mainservice

Do note that the Docker DNS resolution is case senstive (bonkers, I know!) so be careful with your name.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants