From 226ac4fb3a3fc1f5222999f1ccae3ebcc46fcd35 Mon Sep 17 00:00:00 2001 From: Joakim Repomaa Date: Wed, 5 May 2021 00:06:17 +0200 Subject: [PATCH] fix missing --label flag in volume creation --- podman_compose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/podman_compose.py b/podman_compose.py index 882df02..f6d8ed5 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -387,7 +387,7 @@ def assert_volume(compose, mount_dict): # podman volume list --format '{{.Name}}\t{{.MountPoint}}' -f 'label=io.podman.compose.project=HERE' try: out = compose.podman.output(["volume", "inspect", vol_name]).decode('utf-8') except subprocess.CalledProcessError: - compose.podman.output(["volume", "create", "--label", "io.podman.compose.project={}".format(proj_name), "com.docker.compose.project={}".format(proj_name), vol_name]) + compose.podman.output(["volume", "create", "--label", "io.podman.compose.project={}".format(proj_name), "--label", "com.docker.compose.project={}".format(proj_name), vol_name]) out = compose.podman.output(["volume", "inspect", vol_name]).decode('utf-8') def mount_desc_to_mount_args(compose, mount_desc, srv_name, cnt_name):