Skip to content

Commit

Permalink
Add a warning + check to make sure docker is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Jan 29, 2025
1 parent 8e20b60 commit a03bf74
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions repo2docker/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
Docker container engine for repo2docker
"""

import subprocess
import shutil
import tarfile
import tempfile
from queue import Empty, Queue
from threading import Thread

from iso8601 import parse_date
from traitlets import Dict
Expand Down Expand Up @@ -101,6 +99,8 @@ def build(
platform=None,
**kwargs,
):
if not shutil.which("docker"):
raise RuntimeError("The docker commandline client must be installed")
args = ["docker", "buildx", "build", "--progress", "plain", "--load"]
if buildargs:
for k, v in buildargs.items():
Expand Down

0 comments on commit a03bf74

Please sign in to comment.