Coder.comC
Coder.com3y ago
3 replies
Moondog

Issue with getting containers to "find" each other in DinD setup

Hi guys, has anyone had problems getting containers to "find" each other with DinD setup? I have coder running as a docker container using docker compose. I've got sysbox installed and I'm using the v2-templates/docker-network-mode-host template by sharky.

The docker-compose file I'm using to setup airflow in this workspace is the following:
https://airflow.apache.org/docs/apache-airflow/2.6.2/docker-compose.yaml

When I run docker compose up airflow-init it pauses for awhile and then spits out that it can't find the postgres server (which is spun up by the compose file). Locally this docker-compose.yml file works out of the box. So not sure what I'm doing wrong with Coder for it to not find it as expected.

Opening another terminal and running docker ps I see that redis and postgres is spun up but airflow-init can't find it to start the initialization.
Was this page helpful?