-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
cgroups: Make systemd cgroup parent support use specified slices #119
Conversation
Signed-off-by: Mrunal Patel <[email protected]>
Still LGTM |
@@ -446,7 +446,7 @@ func (m *Manager) Set(container *configs.Config) error { | |||
} | |||
|
|||
func getUnitName(c *configs.Cgroup) string { | |||
return fmt.Sprintf("%s-%s.scope", c.Parent, c.Name) | |||
return fmt.Sprintf("%s-%s.scope", c.ScopePrefix, c.Name) |
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.
do we need to check if ScopePrefix was specified?
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.
I don't think "-xyz.scope" is valid. Pretty sure I saw systemd fail that name once :)
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.
I think we need to clarify some of the behavior in #141. I will wait for some conclusion there :)
@selvik I am going to close this for now and reopen it again later. |
Thanks for the prompt response, @mrunalp! |
Pick up opencontainers#119 Fixes: moby/moby#16681 Signed-off-by: Qiang Huang <[email protected]>
Pick up opencontainers#119 Fixes: moby/moby#16681 Signed-off-by: Qiang Huang <[email protected]>
Remove trailing whitespace
Port of docker-archive/libcontainer#549
Signed-off-by: Mrunal Patel [email protected]