mirror of
https://github.com/containers/podman-compose.git
synced 2025-01-23 22:39:04 +01:00
Only pull each image once
This commit is contained in:
parent
9cd837f01d
commit
abc08135ba
@ -1055,9 +1055,12 @@ def compose_version(compose, args):
|
||||
|
||||
@cmd_run(podman_compose, 'pull', 'pull stack images')
|
||||
def compose_pull(compose, args):
|
||||
images = set()
|
||||
for cnt in compose.containers:
|
||||
if cnt.get('build', None): continue
|
||||
compose.podman.run(["pull", cnt["image"]], sleep=0)
|
||||
images.add(cnt["image"])
|
||||
for image in images:
|
||||
compose.podman.run(["pull", image], sleep=0)
|
||||
|
||||
@cmd_run(podman_compose, 'push', 'push stack images')
|
||||
def compose_push(compose, args):
|
||||
|
Loading…
Reference in New Issue
Block a user