-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bind-tools to base image to address alpine dns issues #377
Comments
Interesting that you are having DNS issues within the container. I run this image on a variety of Linux hosts and the majority of my images are alpine based and haven't run into it. Whats your host OS? I typically also use a multi network configuration within the docker stack using the |
Ubuntu 22.04.5, though on kernel 6.8 Example below - 172.30.0.2 is the right answer, the first nslookup is for some reason skipping docker resolution (192.168.0.20 was returned because I have a wildcard in dnsmasq on my dns server).
that said, my solution doesn't completely fix things; nslookup and ping now resolve fine, but curl still has issues:
nothing fancy in the docker compose
feels like #muslc/alpine things to me, not docker-db-backup issues. just manually setting private ip's for now |
aha, yep, alpine things - gliderlabs/docker-alpine#574 (comment) adding a . at the end also results in correct resolution without adding bindtools - |
Musl has some interesting issues that creep up under certain environments for sure. You can try adding There is another one that allows you to execute a script, although that will require you to export a volume with said script. The command above should work, if not try without the quotes.. Reference: https://github.com/tiredofit/docker-alpine?tab=readme-ov-file#container-options Maybe related - Also, I saw a |
Any chance of including bind-tools as one of the apks in the dockerfile?
ref: nodejs/docker-node#339
It only adds ~1MB and addresses alpine DNS resolution issues
Specifically when I have multiple networks I can't get container names to resolve in the docker-db-backup image. exec'ing in and running
apk update && apk add bind-tools
fixes it.Happy to submit a PR, just wanted to see if there was a willingness first.
The text was updated successfully, but these errors were encountered: