From fe60d1962aeaccd837fd303b17422cede0244f48 Mon Sep 17 00:00:00 2001 From: quackerd Date: Sun, 19 Jun 2022 22:41:31 -0400 Subject: [PATCH] initial commit --- docker_update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker_update.py b/docker_update.py index fed4c22..b0ca8fc 100644 --- a/docker_update.py +++ b/docker_update.py @@ -24,13 +24,13 @@ for line in lines: if os.path.isdir(fullpath) and ("docker-compose.yml" in os.listdir(fullpath)): fullpath = os.path.join(fullpath, "docker-compose.yml") print("========= Processing " + fullpath + " =========") - print(subprocess.check_output("docker-compose -f " + fullpath + " pull", shell=True, stderr=subprocess.STDOUT, stdout=subprocess.STDOUT)) - print(subprocess.check_output("docker-compose -f " + fullpath + " up -d", shell=True, stderr=subprocess.STDOUT, stdout=subprocess.STDOUT)) + print(subprocess.check_output("docker-compose -f " + fullpath + " pull", shell=True, stderr=subprocess.STDOUT)) + print(subprocess.check_output("docker-compose -f " + fullpath + " up -d", shell=True, stderr=subprocess.STDOUT)) else: print("========= Skipping " + fullpath + ": invalid dir or docker-compos.yml =========") print("========== CLEANING UP ==========") -print(subprocess.check_output("docker system prune -af", shell=True, stderr=subprocess.STDOUT, stdout=subprocess.STDOUT)) +print(subprocess.check_output("docker system prune -af", shell=True, stderr=subprocess.STDOUT)) print("Docker update complete!\n")