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

exec/java task drivers use host's /etc/hosts even in bridge mode #10768

Open
tgross opened this issue Jun 16, 2021 · 0 comments
Open

exec/java task drivers use host's /etc/hosts even in bridge mode #10768

tgross opened this issue Jun 16, 2021 · 0 comments

Comments

@tgross
Copy link
Member

tgross commented Jun 16, 2021

Coming out of #8900, #8600, and #10766, I noticed that the exec (and java) drivers are simply copying over the host's /etc/hosts, /etc/hostname, and /etc/resolv.conf files, even if we have network.mode = "bridge" set and the task is in a Nomad-owned network namespace.

We probably can't fix this in a totally backwards-compatible way without adding a bunch more flags, but arguably anyone relying on the existing behavior is getting incorrect behavior anyways.

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

1 participant