From f4c2c8707254c4b1b18085c59600c0d73e6d4ee2 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Mon, 25 Nov 2024 20:52:46 +0200 Subject: [PATCH] WIP: Fix doit for macOS --- dodo.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dodo.py b/dodo.py index ff976e2..3470f8e 100644 --- a/dodo.py +++ b/dodo.py @@ -112,10 +112,13 @@ def task_macos_check_cert(): def task_macos_check_docker_containerd(): """Test that Docker uses the containard image store.""" def check_containerd_store(): - driver = subprocess.check_output(["docker", "info", "-f", "{{ .DriverSTatus }}"]) + cmd = ["docker", "info", "-f", "{{ .DriverStatus }}"] + driver = subprocess.check_output(cmd).strip() if driver != "[[driver-type io.containerd.snapshotter.v1]]": raise RuntimeError( - "Switch to Docker's containerd image store" + f"Probing the Docker image store with {cmd} returned {driver}." + " Switch to Docker's containerd image store from the Docker Desktop" + " settings." ) return {