Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Conversation

@crosbymichael
Copy link
Contributor

This changes the namespace configuration on the config to include the
name of the namespace along with an optional path. This path is used to
point to a file of another namespace for the namespace so that it can be
joined in place of the empty, initialized namespace.

Closes #283

Signed-off-by: Michael Crosby [email protected]

@crosbymichael
Copy link
Contributor Author

@LK4D4 what do you think about his for the network work that is being done?

@mrunalp
Copy link
Contributor

mrunalp commented Nov 24, 2014

Hmm, so docker will set the namespace path for --net=container:<> and --ipc=container:<>? It might not be backwards compatible, though, right?
I like this approach as it is more general and handles joining all namespaces.

@crosbymichael
Copy link
Contributor Author

@mrunalp yes. The struct change is not backward compat but it's much more straight forward.

Copy link
Contributor

Choose a reason for hiding this comment

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

I actually didn't got this trick. This is something like _, ok := container.Namespaces[name]?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, got it. Sorry.

@rhatdan
Copy link
Contributor

rhatdan commented Dec 2, 2014

I do like this better and makes potentially adding new namespaces in the future easier.

@crosbymichael
Copy link
Contributor Author

Let me rebase

@crosbymichael
Copy link
Contributor Author

This has been rebased

@mrunalp
Copy link
Contributor

mrunalp commented Dec 3, 2014

I think I agree with @LK4D4 about using a map. Just a minor nit, otherwise LGTM.

@crosbymichael
Copy link
Contributor Author

Ok, i'll look into it

Copy link
Contributor

Choose a reason for hiding this comment

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

I can't parse this comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lol, i'll fix

This changes the namespace configuration on the config to include the
name of the namespace along with an optional path.  This path is used to
point to a file of another namespace for the namespace so that it can be
joined in place of the empty, initialized namespace.

Signed-off-by: Michael Crosby <[email protected]>
@crosbymichael
Copy link
Contributor Author

This should be good now

This removes the unsued namespace types from the namespace package
and simplifies getting the values for the namespaces.

Signed-off-by: Michael Crosby <[email protected]>
@rjnagal
Copy link
Contributor

rjnagal commented Dec 4, 2014

LGTM

@rjnagal
Copy link
Contributor

rjnagal commented Dec 4, 2014

@mrunalp ok to merge?

@mrunalp
Copy link
Contributor

mrunalp commented Dec 4, 2014

Yep, @rjnagal LGTM.

mrunalp pushed a commit that referenced this pull request Dec 4, 2014
Change namespaces config to include path for setns
@mrunalp mrunalp merged commit 6ffd59a into docker-archive:master Dec 4, 2014
@crosbymichael crosbymichael deleted the namespaces-join branch December 9, 2014 19:34
ColinHuang pushed a commit to fcwu/docker that referenced this pull request Jan 5, 2015
This commit contains changes for docker:
* user.GetGroupFile to user.GetGroupPath docker-archive/libcontainer#301
* Add systemd support for OOM docker-archive/libcontainer#307
* Support for custom namespaces docker-archive/libcontainer#279, docker-archive/libcontainer#312
* Fixes moby#9699 docker-archive/libcontainer#308

Signed-off-by: Alexander Morozov <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants