Skip to content

Removed wrong information about container DNS #11012

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

Merged
merged 3 commits into from
Jun 18, 2020
Merged

Conversation

mjchi7
Copy link
Contributor

@mjchi7 mjchi7 commented Jun 18, 2020

Proposed changes

In the docs it says a container will inherit the host /etc/hosts file along with /etc/resolv.conf. While the latter part is correct, /etc/hosts will not actually be inherited.

This PR will update the paragraph to tell reader only the file /etc/resolv.conf will be inherited. In addition to that, some texts have been added to emphasize the fact that /etc/hosts are not inherited

If there's anything wrong with the grammar or the sentence structure, do let me know and I will amend accordingly

Related issues

moby/moby#39311

In the docs it says a container will inherit the host /etc/hosts file along with /etc/resolv.conf. While the latter part is correct, /etc/hosts will not actually be inherited, as reported moby/moby#39311. 
An additional line of text has been added to emphasize the fact that /etc/hosts are not inherited
@netlify
Copy link

netlify bot commented Jun 18, 2020

Deploy preview for docsdocker ready!

Built with commit 113876b

https://deploy-preview-11012--docsdocker.netlify.app

Co-authored-by: Sebastiaan van Stijn <thaJeztah@users.noreply.github.com>
Copy link
Member

@usha-mandya usha-mandya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you @mjchi7 and @thaJeztah

@usha-mandya usha-mandya merged commit 9193473 into docker:master Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants