From dca82b9e5c53e96d1e34bec03e78e17feb8d6fdb Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Wed, 22 Nov 2017 22:21:40 +0100 Subject: [PATCH] container: update real-time resources Signed-off-by: Antonio Murdaca --- container/container_unix.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/container/container_unix.go b/container/container_unix.go index 28a3722c79..f030232060 100644 --- a/container/container_unix.go +++ b/container/container_unix.go @@ -332,6 +332,12 @@ func (container *Container) UpdateContainer(hostConfig *containertypes.HostConfi if resources.KernelMemory != 0 { cResources.KernelMemory = resources.KernelMemory } + if resources.CPURealtimePeriod != 0 { + cResources.CPURealtimePeriod = resources.CPURealtimePeriod + } + if resources.CPURealtimeRuntime != 0 { + cResources.CPURealtimeRuntime = resources.CPURealtimeRuntime + } // update HostConfig of container if hostConfig.RestartPolicy.Name != "" {