From 770d27b5a5b01c18656433d48ebd55ce1e7aef6f Mon Sep 17 00:00:00 2001 From: Matthias Wessendorf Date: Tue, 18 Jun 2024 13:33:11 +0200 Subject: [PATCH] :broom: Run registry as bridge network (#525) Signed-off-by: Matthias Wessendorf --- pkg/kind/kind.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kind/kind.go b/pkg/kind/kind.go index 93630fcb..4a784a93 100644 --- a/pkg/kind/kind.go +++ b/pkg/kind/kind.go @@ -139,7 +139,7 @@ func createLocalRegistry() error { } localRegCheck := exec.Command( "docker", "run", "-d", "--restart=always", "-p", "0.0.0.0:"+container_reg_port+":5000", - "--name", container_reg_name, "registry:2", + "--network", "bridge", "--name", container_reg_name, "registry:2", ) if err := localRegCheck.Run(); err != nil { return fmt.Errorf("failed to create local registry container: %w", err)