-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
implement podman update #15276
implement podman update #15276
Conversation
329fb1d
to
db31054
Compare
@edsantiago I can no longer run the man page checker locally since the recent man page changes. Any quick tips on how to remedy this?
|
|
697cbaa
to
e46e980
Compare
055efc8
to
96ab9db
Compare
c7dbfc2
to
903ac04
Compare
LGTM |
In all cases, went with the version from podman-run because it conforms to our documentation guidelines. I then added the FAQ-26 link to each one. This does not review easily with hack/markdown-preprocess-review because there are too many files involved. Sorry. This will cause conflicts in containers#15276 - again, I'm sorry. On the bright side, that PR still needs work anyway, and rebasing on top of this should make it easier to review. Signed-off-by: Ed Santiago <santiago@redhat.com>
LGTM @containers/podman-maintainers PTAL |
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.
/lgtm
Nice work, @cdoern !
/hold |
Argh, there's a merge conflict. One more round, @cdoern |
podman update allows users to change the cgroup configuration of an existing container using the already defined resource limits flags from podman create/run. The supported flags in crun are: this command is also now supported in the libpod api via the /libpod/containers/<CID>/update endpoint where the resource limits are passed inthe request body and follow the OCI resource spec format –memory –cpus –cpuset-cpus –cpuset-mems –memory-swap –memory-reservation –cpu-shares –cpu-quota –cpu-period –blkio-weight –cpu-rt-period –cpu-rt-runtime -device-read-bps -device-write-bps -device-read-iops -device-write-iops -memory-swappiness -blkio-weight-device resolves containers#15067 Signed-off-by: Charlie Doern <cdoern@redhat.com>
/hold cancel |
@containers/podman-maintainers PTAL |
This is not a simple rebase; |
that function was moved to |
/lgtm |
Followup from containers#15276: add the FAQ-26 link, and fix one broken replacement. Signed-off-by: Ed Santiago <santiago@redhat.com>
(memory-star, i.e., several memory options) that didn't get included in containers#15276. Most of them are shoo-ins; the two in container-clone and pod-clone deserve special attention because of the "If unspecified" wording. Signed-off-by: Ed Santiago <santiago@redhat.com>
(memory-star, i.e., several memory options) that didn't get included in containers#15276. Most of them are shoo-ins; the two in container-clone and pod-clone deserve special attention because of the "If unspecified" wording. Signed-off-by: Ed Santiago <santiago@redhat.com>
@cdoern hey, I am trying to use API to update container, but seems it just does not work:
Am I doing something wrong? Thanks EDIT:
is correct payload format. |
podman update allows users to change the cgroup configuration of an existing container using the already defined resource limits flags from podman create/run. The supported flags in crun are:
this command is also now supported in the libpod api via the /libpod/containers//update endpoint where
the resource limits are passed in the request body and follow the OCI resource spec format
resolves #15067
Signed-off-by: Charlie Doern cdoern@redhat.com
Does this PR introduce a user-facing change?