From 9af65ea1126fa0b260ada58f10e5a114e073b88c Mon Sep 17 00:00:00 2001 From: Muayyad alsadi Date: Sat, 12 Feb 2022 17:35:04 +0200 Subject: [PATCH] adjust comment --- podman_compose.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/podman_compose.py b/podman_compose.py index c00226c..7eadbc6 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -503,13 +503,15 @@ def get_secret_args(compose, cnt, secret): def container_to_res_args(cnt, podman_args): - # v2 < https://docs.docker.com/compose/compose-file/compose-file-v2/#cpu-and-other-resources + # v2: https://docs.docker.com/compose/compose-file/compose-file-v2/#cpu-and-other-resources + # cpus, cpu_shares, mem_limit, mem_reservation cpus_limit_v2 = try_float(cnt.get('cpus', None), None) cpu_shares_v2 = try_int(cnt.get('cpu_shares', None), None) mem_limit_v2 = cnt.get('mem_limit', None) mem_res_v2 = cnt.get('mem_reservation', None) - # v3 < https://docs.docker.com/compose/compose-file/compose-file-v3/#resources - # spec < https://github.com/compose-spec/compose-spec/blob/master/deploy.md#resources + # v3: https://docs.docker.com/compose/compose-file/compose-file-v3/#resources + # spec: https://github.com/compose-spec/compose-spec/blob/master/deploy.md#resources + # deploy.resources.{limits,reservations}.{cpus, memory} deploy = cnt.get('deploy', None) or {} res = deploy.get('resources', None) or {} limits = res.get('limits', None) or {}