Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Conversation

@liron-l
Copy link
Contributor

@liron-l liron-l commented Feb 10, 2016

Following the discussions in #20111, #19995 and #17409 we need a
mechinshem to enable skipping userns flag when userns re-mapping was
specified in the daemon level.
As suggest by #mrunalp, a coherent and consistent options is to add the
userns flag to the engine-api.

I've also moved the UT found at:
/docker/docker/runconfig/hostconfig_test.go next to hostconfig.go file
(since they test the specified functionality).

@liron-l
Copy link
Contributor Author

liron-l commented Feb 15, 2016

@calavera can you please direct me to the appropriate reviewer for this change?

@calavera
Copy link
Contributor

TBH, I'd rather not bring these types here if they're not used in both sides, client and server. This is very similar to #56.

@liron-l
Copy link
Contributor Author

liron-l commented Feb 17, 2016

@calavera your comments is about DefaultDaemonNetworkMode not about the UsernsMode right?
Also, what about the unit test refactor, are you ok with it?

Following the discussions in #20111, #19995 and #17409 we need a
mechinshem to enable skipping userns flag when userns re-mapping was
specified in the daemon level.
As suggest by #mrunalp, a coherent and consistent options is to add the
userns flag to the engine-api.

Signed-off-by: Liron Levin <liron@twistlock.com>
@liron-l
Copy link
Contributor Author

liron-l commented Feb 21, 2016

@calavera I've cleanup this change and removed all unrelated code.
The new UsernsMode should be used both in client and server.

@liron-l
Copy link
Contributor Author

liron-l commented Feb 28, 2016

@calavera @estesp can you please review this change?

@estesp
Copy link
Contributor

estesp commented Feb 29, 2016

LGTM - this is in support of the new flag to allow a privileged mode run when user namespaces are enabled. I believe it is used on both client and server as the flag parsing requires these functions.

@calavera
Copy link
Contributor

calavera commented Mar 1, 2016

LGTM

calavera added a commit that referenced this pull request Mar 1, 2016
@calavera calavera merged commit 6c8fbd2 into docker-archive-public:master Mar 1, 2016
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.

4 participants