Merge pull request #51969 from ClickHouse/docker-network-prune

Fix Docker
This commit is contained in:
Alexey Milovidov 2023-07-08 23:45:58 +03:00 committed by GitHub
commit 508a9c1800
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,6 +42,13 @@ def cleanup_environment():
logging.debug(f"Docker ps before start:{r.stdout}") logging.debug(f"Docker ps before start:{r.stdout}")
else: else:
logging.debug(f"No running containers") logging.debug(f"No running containers")
logging.debug("Pruning Docker networks")
run_and_check(
["docker network prune"],
shell=True,
nothrow=True,
)
except Exception as e: except Exception as e:
logging.exception(f"cleanup_environment:{str(e)}") logging.exception(f"cleanup_environment:{str(e)}")
pass pass