benjamin-bergia / workflow-testing

2 stars 3 forks source link

Docker network DNS #1

Open white-gecko opened 3 years ago

white-gecko commented 3 years ago

Hey @benjamin-bergia , I found you issue here: https://github.community/t/docker-network-dns/147087 as it seems in looking at this repo you did not find a solution so far. Is that true?

I've tried to get the gist of this issue into a stack overflow question: https://stackoverflow.com/questions/65330029/access-a-container-by-hostname-in-github-actions-from-within-an-action

benjamin-bergia commented 3 years ago

Hi @white-gecko, yes, the only way I found to tight docker containers, actions and services together is to run everything on the host network. As mentioned in my issue, it is possible to join the network created by the runner, but there is no way to reference containers by names. I can add an answer to you SO question with the different solutions I found.