Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Add Cgroups to runtime config #181

Merged
merged 1 commit into from
Nov 17, 2017

Conversation

justincormack
Copy link
Collaborator

This will create the list of cgroups specified

Signed-off-by: Justin Cormack justin.cormack@docker.com

Note that the implementation is not done yet in linuxkit...

docs/yaml.md Outdated
@@ -183,6 +183,7 @@ permissions issues in use.

In addition to the parts of the specification above used to generate the OCI spec, there is a `runtime` section in the image specification
which specifies some actions to take place when the container is being started.
- `cgroups` takes a list of cgroups that will be created before the container is run.
Copy link
Collaborator

Choose a reason for hiding this comment

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

double space in of cgroups

Copy link
Collaborator

@ijc ijc left a comment

Choose a reason for hiding this comment

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

One ((super) tiny) typographical nit, otherwise LGTM.

This will create the list of cgroups specified

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
@justincormack
Copy link
Collaborator Author

Amended as I forgot the schema change.

Copy link
Collaborator

@ijc ijc left a comment

Choose a reason for hiding this comment

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

Still LGTM

@justincormack
Copy link
Collaborator Author

ok, have the other end of this working now

@justincormack justincormack merged commit eceb6d1 into moby:master Nov 17, 2017
justincormack added a commit to justincormack/linuxkit that referenced this pull request Nov 17, 2017
Implements moby/tool#181

Design for things like Kubernetes setup that requires some cgroups to
exist when the service starts but it is not running in these, other
services are, so there would be a race if they are not created in each.

Essentially it is just a sugared `mkdir` in all the cgroup dirs.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
@justincormack justincormack deleted the runtime-cgroups branch November 17, 2017 14:25
rn pushed a commit to rn/linuxkit that referenced this pull request Nov 21, 2017
Implements moby/tool#181

Design for things like Kubernetes setup that requires some cgroups to
exist when the service starts but it is not running in these, other
services are, so there would be a race if they are not created in each.

Essentially it is just a sugared `mkdir` in all the cgroup dirs.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
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.

2 participants