mirror of
				https://github.com/containers/podman.git
				synced 2025-10-31 18:08:51 +08:00 
			
		
		
		
	 050f3291b9
			
		
	
	050f3291b9
	
	
	
		
			
			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 #15067 Signed-off-by: Charlie Doern <cdoern@redhat.com>
		
			
				
	
	
		
			15 lines
		
	
	
		
			354 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			354 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| //go:build !linux
 | |
| // +build !linux
 | |
| 
 | |
| package specgen
 | |
| 
 | |
| // FinishThrottleDevices cannot be called on non-linux OS' due to importing unix functions
 | |
| func FinishThrottleDevices(s *SpecGenerator) error {
 | |
| 	return nil
 | |
| }
 | |
| 
 | |
| // WeightDevices cannot be called on non-linux OS' due to importing unix functions
 | |
| func WeightDevices(s *SpecGenerator) error {
 | |
| 	return nil
 | |
| }
 |