runc: fix systemd cgroup after memory type changed
This commit is contained in:
parent
f5e3b8f1bd
commit
b6e8f99009
@ -0,0 +1,30 @@
|
|||||||
|
From 22fab107bdb684d3e7651804b5f6ba3c432652ca Mon Sep 17 00:00:00 2001
|
||||||
|
From: xiadanni <xiadanni1@huawei.com>
|
||||||
|
Date: Mon, 9 Aug 2021 10:16:47 +0800
|
||||||
|
Subject: [PATCH] runc:fix systemd cgroup after memory type changed
|
||||||
|
|
||||||
|
upstream from
|
||||||
|
https://github.com/opencontainers/runc/pull/1573/commits/acaf6897f566c2f592a488c83dafcddec41524be
|
||||||
|
|
||||||
|
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
|
||||||
|
Signed-off-by: xiadanni <xiadanni1@huawei.com>
|
||||||
|
---
|
||||||
|
libcontainer/cgroups/systemd/apply_systemd.go | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/libcontainer/cgroups/systemd/apply_systemd.go b/libcontainer/cgroups/systemd/apply_systemd.go
|
||||||
|
index 0411b72..a08a9a9 100644
|
||||||
|
--- a/libcontainer/cgroups/systemd/apply_systemd.go
|
||||||
|
+++ b/libcontainer/cgroups/systemd/apply_systemd.go
|
||||||
|
@@ -261,7 +261,7 @@ func (m *Manager) Apply(pid int) error {
|
||||||
|
|
||||||
|
if c.Resources.Memory != 0 {
|
||||||
|
properties = append(properties,
|
||||||
|
- newProp("MemoryLimit", c.Resources.Memory))
|
||||||
|
+ newProp("MemoryLimit", uint64(c.Resources.Memory)))
|
||||||
|
}
|
||||||
|
|
||||||
|
if c.Resources.CpuShares != 0 {
|
||||||
|
--
|
||||||
|
2.27.0
|
||||||
|
|
||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: docker-runc
|
Name: docker-runc
|
||||||
Version: 1.1.3
|
Version: 1.1.3
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: runc is a CLI tool for spawning and running containers according to the OCI specification.
|
Summary: runc is a CLI tool for spawning and running containers according to the OCI specification.
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
@ -43,6 +43,12 @@ install -p -m 755 runc $RPM_BUILD_ROOT/%{_bindir}/runc
|
|||||||
%{_bindir}/runc
|
%{_bindir}/runc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 16 2022 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.3-3
|
||||||
|
- Type:bugfix
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:fix systemd cgroup after memory type changed
|
||||||
|
|
||||||
* Tue Aug 9 2022 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.3-2
|
* Tue Aug 9 2022 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.3-2
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
@ -130,4 +130,5 @@ patch/0129-runc-improve-log-for-debugging.patch
|
|||||||
patch/0130-runc-fix-cgroup-info-print-error.patch
|
patch/0130-runc-fix-cgroup-info-print-error.patch
|
||||||
patch/0131-runc-save-state-atomic.patch
|
patch/0131-runc-save-state-atomic.patch
|
||||||
patch/0132-runc-change-Umask-to-0022.patch
|
patch/0132-runc-change-Umask-to-0022.patch
|
||||||
|
patch/0133-runc-fix-systemd-cgroup-after-memory-type-changed.patch
|
||||||
#end
|
#end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user