-
Notifications
You must be signed in to change notification settings - Fork 29
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
docker containers on non-default network can't do DNS lookups #772
Comments
Clearlinux doesn't ship a firewall by default. I assume that the problem is that DNS resolution isn't properly mapped into docker. |
I ran into something like this last night. I had two containers on a user-created network that published ports and expected to see each other by port number on localhost but couldn't. It was
Adding an explicit driver - |
It does appear to create the relevant network correctly: $ docker network inspect test_default |
Just try it in my dev machine. The issue can only be reproduced in kata-runtime. if choose runc, non-default network works fine. The initial analysis suggest, it may relate to Embedded DNS server in user-defined networks. The DNS server 127.0.0.11 inside /etc/resolve.conf can't work well in kata container. If pass a right DNS server, network is workable. So it mostly could be a kata-runtime specific issue. |
@amshinde Have you seen this before on kata? |
earlier today i set the docker_engine to runc in systems configuration files, and it works correctly. so it does appear to be an issue between docker internal dns and kata. |
Now that I think of it, I may have had the |
afaik, this is still an issue in kata, related: kata-containers/runtime#175 |
For Clear, the work around is to use runc rather than kata. @CraigSterrett This is likely something to take into account (and maybe close) if we switch to runc as the default runtime. |
docker-compose creates its own network, which causes the DNS in docker to be set to 127.0.0.11.
This doesn't appear to be being allowed through the firewall:
sample docker-compose file (same error with/without networks: default: null)
iptables from the namespace seem to make sense:
it works correctly on the docker default network (for example
docker run -it --rm --entrypoint /bin/bash redis
can run apt update correctly)clearlinux version:
$ swupd info
Installed version: 29520
The text was updated successfully, but these errors were encountered: