From d39f7c60366359ac70b30c8a716c3089696fc543 Mon Sep 17 00:00:00 2001 From: Nikolay Edigaryev Date: Fri, 10 Apr 2026 06:00:36 +0200 Subject: [PATCH] Docker-related fixes (#1221) * tests: fix RegistryRunner's "-p" specification passed to "docker" * tests: "docker" binary is now installed from Homebrew --- Tests/TartTests/Util/RegistryRunner.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/TartTests/Util/RegistryRunner.swift b/Tests/TartTests/Util/RegistryRunner.swift index d22db41..8599d77 100644 --- a/Tests/TartTests/Util/RegistryRunner.swift +++ b/Tests/TartTests/Util/RegistryRunner.swift @@ -13,7 +13,7 @@ class RegistryRunner { let stdoutPipe = Pipe() let proc = Process() - proc.executableURL = URL(fileURLWithPath: "/usr/local/bin/docker") + proc.executableURL = URL(fileURLWithPath: "/opt/homebrew/bin/docker") proc.arguments = arguments proc.standardOutput = stdoutPipe try proc.run() @@ -31,7 +31,7 @@ class RegistryRunner { init() async throws { // Start container - let container = try Self.dockerCmd("run", "-d", "--rm", "-p", "127.0.0.1:0:5000", "registry:2") + let container = try Self.dockerCmd("run", "-d", "--rm", "-p", "127.0.0.1::5000", "registry:2") .trimmingCharacters(in: CharacterSet.newlines) containerID = container