From 309aab82a7e340ffeea8ae5c0f6b23177251329e Mon Sep 17 00:00:00 2001 From: khoaguin Date: Fri, 29 Sep 2023 20:52:48 +0700 Subject: [PATCH] fix `docker remove` command when not pruning volumes --- packages/hagrid/hagrid/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hagrid/hagrid/cli.py b/packages/hagrid/hagrid/cli.py index b51770a2e11..3d7a5b92044 100644 --- a/packages/hagrid/hagrid/cli.py +++ b/packages/hagrid/hagrid/cli.py @@ -3159,7 +3159,7 @@ def create_land_cmd(verb: GrammarVerb, kwargs: TypeDict[str, Any]) -> str: land_cmd += "$(docker volume ls --filter label=orgs.openmined.syft -q)" return land_cmd else: - return "docker rm `docker ps -aq` --force" + return "docker rm `docker ps --filter label=orgs.openmined.syft -q` --force" version = check_docker_version() if version: