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

Set sysctl/Namespace kernel parameters within the container#38

Merged
runcom merged 1 commit into
docker-archive-public:masterfrom
rhatdan:master
Mar 3, 2016
Merged

Set sysctl/Namespace kernel parameters within the container#38
runcom merged 1 commit into
docker-archive-public:masterfrom
rhatdan:master

Conversation

@rhatdan

@rhatdan rhatdan commented Jan 12, 2016

Copy link
Copy Markdown
Contributor

No description provided.

@rhatdan

rhatdan commented Jan 12, 2016

Copy link
Copy Markdown
Contributor Author

This is needed for moby/moby#19265

@MHBauer

MHBauer commented Jan 29, 2016

Copy link
Copy Markdown
Contributor

I understand what the omitempty annotation does. What does it mean in this specific case of an empty map vs it not being there? Does make the code easier on one side or the other? I'm still learning how json is used in the golang context.

I don't have any problems adding a field if it's going to be used.

@thaJeztah

Copy link
Copy Markdown
Contributor

ping @rhatdan can you rebase?

@calavera the associated PR in docker/docker is now in code-review

@rhatdan

rhatdan commented Feb 29, 2016

Copy link
Copy Markdown
Contributor Author

Done

@calavera

Copy link
Copy Markdown
Contributor

LGTM

Comment thread types/container/host_config.go Outdated
Tmpfs map[string]string `json:",omitempty"` // List of tmpfs (mounts) used for the container
UTSMode UTSMode // UTS namespace to use for the container
ShmSize int64 // Total shm memory usage
Sysctls map[string]string `json:",omitempty"` // List of Namesp

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

oh, nitpick but does the comment match this? "List of Namesp"

@thaJeztah

Copy link
Copy Markdown
Contributor

@rhatdan looks like you did a merge, not a rebase

Need setup sysctls that are namespaced inside of containers before
the container processes are executed.

Signed-off-by: Dan Walsh <dwalsh@redhat.com>
@rhatdan

rhatdan commented Mar 2, 2016

Copy link
Copy Markdown
Contributor Author

@thaJeztah I think it is fixed now

@thaJeztah

Copy link
Copy Markdown
Contributor

Thanks @rhatdan LGTM

ping @calavera for the merge 😄

@runcom

runcom commented Mar 3, 2016

Copy link
Copy Markdown
Contributor

LGTM

runcom added a commit that referenced this pull request Mar 3, 2016
Set sysctl/Namespace kernel parameters within the container
@runcom runcom merged commit f6562ce into docker-archive-public:master Mar 3, 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.

6 participants