Skip to content
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 don't flush dns cache if host have been changed of the /etc/resolv.conf #12304

Closed
prometheus-tao opened this issue Nov 18, 2024 · 2 comments

Comments

@prometheus-tao
Copy link

Description

One of the host run many containers by compose up, Since host have been changed, And then dns request send to old it of the container too

Container resolv as following
nameserver 127.0.0.11 options timeout:1 attempts:1 rotate single-request-reopen ndots:0

Only one method by docker restart? Is anything have better?

@ndeloof
Copy link
Contributor

ndeloof commented Nov 19, 2024

AFAICT this isn't a Compose issue, but a general Docker question regarding engine support for changes on host's configuration.
Also not a feature request but a question/request for support
You should better join Docker community slack for such discussion

About your issue, AFAIK docker engine (and as such all containers) need to be restarted so that host's network config changes are applied to containers.

Closing as "not a compose issue"

@ndeloof ndeloof closed this as not planned Won't fix, can't repro, duplicate, stale Nov 19, 2024
@prometheus-tao
Copy link
Author

okay,thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants