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: move host path for hosts file mount to alloc dir #10823

Merged
merged 3 commits into from
Jun 30, 2021
Merged

Conversation

tgross
Copy link
Member

@tgross tgross commented Jun 28, 2021

Fixes #10809

In Nomad 1.1.1 we generate a hosts file based on the Nomad-owned network
namespace, rather than using the default hosts file from the pause
container. This hosts file should be shared between tasks in the same
allocation so that tasks can update the file and have the results propagated
between tasks.

In Nomad 1.1.1 we generate a hosts file based on the Nomad-owned network
namespace, rather than using the default hosts file from the pause
container. This hosts file should be shared between tasks in the same
allocation so that tasks can update the file and have the results propagated
between tasks.
@tgross tgross force-pushed the b-10809-etc-hosts branch from 2bd0815 to 7edc752 Compare June 28, 2021 13:08
@vercel vercel bot temporarily deployed to Preview – nomad June 28, 2021 13:08 Inactive
@tgross tgross added this to the 1.1.3 milestone Jun 28, 2021
@tgross tgross marked this pull request as ready for review June 28, 2021 19:04
@tgross tgross requested review from shoenig and notnoop June 28, 2021 19:05
CHANGELOG.md Outdated Show resolved Hide resolved
@shoenig
Copy link
Member

shoenig commented Jun 28, 2021

LGTM; is this something we should call out in the upgrade notes? (as unlikely as anyone is doing so, currently tasks could modify this file independently and now they can't, right?)

@tgross
Copy link
Member Author

tgross commented Jun 28, 2021

LGTM; is this something we should call out in the upgrade notes? (as unlikely as anyone is doing so, currently tasks could modify this file independently and now they can't, right?)

Seems worth calling out.

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generated /etc/hosts not shared between tasks
2 participants