use different argument structure for docker prune

This commit is contained in:
kjeld Schouten-Lebbing
2022-01-19 18:39:46 +01:00
parent f723dc71e3
commit eabd80c443
2 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ def sync_catalog():
def docker_prune():
if PRUNE:
print("Pruning old docker images...\n")
process = subprocess.Popen(["docker", "image ", "prune", "-a", "-f"], stdout=subprocess.PIPE)
process = subprocess.Popen(["docker", "image ", "prune", "-af"], stdout=subprocess.PIPE)
while process.poll() is None:
lines = process.stdout.readline()
print (lines)