We have a customer with a setup in which a container can’t resolve an ip address. The device is on a guest network that might have some restrictions but Balena can successfully access the cloud and the Host shell can successfully resolve the DNS.
For anyone bumping into this in the future, the solution was to configure the default bridging network used for the containers.
Adding the following lines to the docker-compose.yml solved the problem:
networks:
default:
ipam:
driver: default
config:
- subnet: “172.21.21.0/24”
- subnet: “2001:3984:3989::/64”