Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 28, 2025
1 parent 576b896 commit 5f00ce3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 3 additions & 4 deletions repo2docker/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,13 @@ def build(

yield from execute_cmd(args, True)


def inspect_image(self, image):
"""
Return image configuration if it exists, otherwise None
"""
proc = subprocess.run([
"docker", "image", "inspect", image
], capture_output=True)
proc = subprocess.run(
["docker", "image", "inspect", image], capture_output=True
)

if proc.returncode != 0:
return None
Expand Down
5 changes: 3 additions & 2 deletions tests/registry/test_registry.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os
import shutil
import secrets
import shutil
import socket
import subprocess
import time
Expand Down Expand Up @@ -32,7 +32,8 @@ def dind(registry, host_ip):
"-e",
"DOCKER_TLS_CERTDIR=/opt/certs",
"--privileged",
"--mount", f"type=bind,src={cert_dir},dst=/opt/certs",
"--mount",
f"type=bind,src={cert_dir},dst=/opt/certs",
"-p",
f"{port}:2376",
dind_image,
Expand Down

0 comments on commit 5f00ce3

Please sign in to comment.