WIP: Fix doit for macOS

This commit is contained in:
Alex Pyrgiotis 2024-11-25 20:52:46 +02:00
parent fa797c8a8d
commit f4c2c87072
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -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 {