diff --git a/podman_compose.py b/podman_compose.py index db6dc58..3fdfe69 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -1979,7 +1979,7 @@ def _parse_compose_file(self): container_names_by_service[service_name] = [] for num in range(1, replicas + 1): - name0 = f"{project_name}_{service_name}_{num}" + name0 = f"{project_name}-{service_name}-{num}" if num == 1: name = service_desc.get("container_name", name0) else: