Azure Container Instances with Docker compose: containers can't reach each other

RdJNL 36 Reputation points
2020-12-16T18:52:35.36+00:00

I'm trying to run a docker compose file on Azure Container Instances.

My file is based on this one: https://github.com/denverquane/automuteus/blob/master/docker-compose.yml. Obviously I've made sure all environment variables, volumes, etc. are setup correctly and it's working locally with Docker for Windows.

However, when I run it on Azure (using docker compose up) I can't get it to work. The containers are created along with a docker/aci-hostnames-sidecar:1.0 container. However, the containers cannot reach each other. I get errors like this everywhere: dial tcp: lookup redis on 168.63.129.16:53: no such host. It seems like they cannot resolve the host names that should normally be setup automatically by docker compose.

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
757 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Alexandre Augusto Santicioli 1 Reputation point
    2022-07-11T15:09:02.673+00:00

    @RdJNL , did you find a solution? I still have this same trouble here.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.