mirror of
https://github.com/containers/podman-compose.git
synced 2025-02-03 03:49:21 +01:00
added cpu_shares flag for v2
This commit is contained in:
parent
bfb57b9ba2
commit
e85d79d4f4
@ -602,7 +602,7 @@ def container_to_res_args(cnt, podman_args):
|
||||
if cpus:
|
||||
podman_args.extend(('--cpus', str(cpus),))
|
||||
if cpu_shares_v2:
|
||||
podman_args.extend(('--cpu_shares', str(cpu_shares_v2),))
|
||||
podman_args.extend(('--cpu-shares', str(cpu_shares_v2),))
|
||||
mem = mem_limit_v3 or mem_limit_v2
|
||||
if mem:
|
||||
podman_args.extend(('-m', str(mem).lower(),))
|
||||
|
Loading…
Reference in New Issue
Block a user