mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
WIP: Fix doit for macOS
This commit is contained in:
parent
fa797c8a8d
commit
f4c2c87072
1 changed files with 5 additions and 2 deletions
7
dodo.py
7
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 {
|
||||
|
|
Loading…
Reference in a new issue