Add support for --network=netns:/proc/pid/ns/net#272
Merged
runcom merged 1 commit intoprojectatomic:docker-1.13.1from Sep 15, 2017
Merged
Add support for --network=netns:/proc/pid/ns/net#272runcom merged 1 commit intoprojectatomic:docker-1.13.1from
runcom merged 1 commit intoprojectatomic:docker-1.13.1from
Conversation
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
Member
|
LGTM |
|
@runcom We need resolv.conf which we can bind mount from the annotations that we expose in inspect endpoint already. I don't think we should need hostname, but if required we can do the same thing there. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This patch is the same as #271 but for 1.13.1 because I wasn't able to test for 1.12.6. This contains, however, some more stuff in
daemon/container_operations.go(@mrunalp PTAL and update #271 accordingly).The testing went fine:
You can see both containers in CRI-O and docker have the same IP address.
However, it's not clear in docker if the hostname is important. Right now, if you use this patch the docker container won't have the same hostname as the CRI-O container. I left a TODO here https://github.com/projectatomic/docker/compare/docker-1.13.1...runcom:netns-1.13?expand=1#diff-3a40f2cc412a64610c68b78a6bb97132R869
/cc @rhatdan @lsm5
@bparees @mrunalp Let me know if the hostname is important (I don't think so)
Signed-off-by: Antonio Murdaca runcom@redhat.com