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: