diff --git a/src/molecule_plugins/docker/driver.py b/src/molecule_plugins/docker/driver.py index a22a6e5..894eee6 100644 --- a/src/molecule_plugins/docker/driver.py +++ b/src/molecule_plugins/docker/driver.py @@ -255,7 +255,11 @@ def sanity_checks(self): self._passed_sanity = True def reset(self): - import docker + # maybe use self.sanity_check instead? + try: + import docker + except ImportError: + return client = docker.from_env() for c in client.containers.list(filters={"label": "owner=molecule"}):