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

add parameter to Set api#441

Merged
vmarmol merged 1 commit intodocker-archive:masterfrom
hqhq:hq_change_set_api
Mar 18, 2015
Merged

add parameter to Set api#441
vmarmol merged 1 commit intodocker-archive:masterfrom
hqhq:hq_change_set_api

Conversation

@hqhq
Copy link
Contributor

@hqhq hqhq commented Mar 11, 2015

We only have libcontainer.Container on Docker side, can't change config
in linuxContainer, pass config to libcontainer so we can change config of
container.

Signed-off-by: Qiang Huang [email protected]

We only have libcontainer.Container on Docker side, can't change `config`
in linuxContainer, pass config to libcontainer so we can change config of
container.

Signed-off-by: Qiang Huang <[email protected]>
Copy link
Contributor

Choose a reason for hiding this comment

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

This gives me the assumption that the API allows us to change any of the configuration, while it probably only makes sense to change the cgroup limits (and possibly rlimits ).

Do you think we should define a subset of configuration (i.e. cgroup values, rlimits etc. ) that can be changed for a running container instead of reusing Config here ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think Set could have more functionality in future to cover more than cgroups, so taking in the entire config makes sense to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I was intend to make Set more functionality, not just change resource configs. We can reusing Config in libcontainer, and leave it to Docker to decide which Config can be changed.

@hqhq hqhq mentioned this pull request Mar 17, 2015
@hqhq
Copy link
Contributor Author

hqhq commented Mar 17, 2015

Hi, Set command from Docker side is out, moby/moby#11442
that PR needs this commit, can you help review? Thanks.

@mrunalp
Copy link
Contributor

mrunalp commented Mar 18, 2015

LGTM @crosbymichael @vmarmol ping

@dqminh
Copy link
Contributor

dqminh commented Mar 18, 2015

LGTM

1 similar comment
@vmarmol
Copy link
Contributor

vmarmol commented Mar 18, 2015

LGTM

vmarmol added a commit that referenced this pull request Mar 18, 2015
@vmarmol vmarmol merged commit 4622c8a into docker-archive:master Mar 18, 2015
@hqhq hqhq deleted the hq_change_set_api branch March 23, 2015 01:52
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.

4 participants