RegistryRunner: explicitly listen on localhost (#956)

This commit is contained in:
Nikolay Edigaryev 2024-11-21 15:24:37 +01:00 committed by GitHub
parent 8536c16bcc
commit 0794edf15a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class RegistryRunner {
init() async throws {
// Start container
let container = try Self.dockerCmd("run", "-d", "--rm", "-p", "5000", "registry:2")
let container = try Self.dockerCmd("run", "-d", "--rm", "-p", "127.0.0.1:0:5000", "registry:2")
.trimmingCharacters(in: CharacterSet.newlines)
containerID = container