-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Fix Docker API compatibility with network alias #21013
Fix Docker API compatibility with network alias #21013
Conversation
06692b3
to
c91004e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, code mostly looks good except one naming nit.
I think for the test it would be better to bind mount the hosts file as this could work as rootless as well.
c91004e
to
fe07cca
Compare
* Add BaseHostsFile to container configuration * Do not copy /etc/hosts file from host when creating a container using Docker API Signed-off-by: Gavin Lam <[email protected]>
fe07cca
to
db68764
Compare
@Luap99 I can submit a subsequent PR adding a It provides flexibility for users to override hosts file at a container level. Do you think it is a good idea? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gavinkflam, Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
07834ab
into
containers:main
Fixes #17167
I fixed this issue by applying @Luap99's suggestions - #17167 (comment)
Does this PR introduce a user-facing change?