From 1f4b8803b46ea624a0b1ef8ad28b2cc7b3ee5fde Mon Sep 17 00:00:00 2001 From: Anmol Virdi <67299745+AnmolVirdi@users.noreply.github.com> Date: Tue, 17 Oct 2023 23:54:39 +0530 Subject: [PATCH] Remove volumes after docker-compose down (#374) * Reduced scale factor for pgbench Signed-off-by: Anmol Virdi * Added remove volumes flag to save space Signed-off-by: Anmol Virdi --------- Signed-off-by: Anmol Virdi --- community_images/common/orchestrator/docker_compose_setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community_images/common/orchestrator/docker_compose_setup.py b/community_images/common/orchestrator/docker_compose_setup.py index 88112a100a..be1fae4e26 100644 --- a/community_images/common/orchestrator/docker_compose_setup.py +++ b/community_images/common/orchestrator/docker_compose_setup.py @@ -101,7 +101,7 @@ def __exit__(self, type, value, traceback): # kill docker-compose setup container try: cmd = f"docker-compose --env-file {self.temp_env_file} -f {self.docker_file}" - cmd += f" -p {self.namespace_name} down --timeout 60" + cmd += f" -p {self.namespace_name} down -v --timeout 60" Utils.run_cmd(cmd.split()) except subprocess.CalledProcessError as excp: logging.info(f"docker-compose down failed due to {excp}")