Skip to content

Commit 3410903

Browse files
committed
fix: registry port in e2e test container to be reachable from Docker Desktop on macos
1 parent 3755edd commit 3410903

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/e2e/registry_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ func TestRegistryPushPull(t *testing.T) {
3434
buildOptions.Target = "unregistry-dind"
3535
},
3636
},
37-
Privileged: true,
38-
ExposedPorts: []string{"2375", "5000"},
37+
Privileged: true,
38+
// Explicitly specify the host port for the registry because if not specified, 'docker push' from Docker
39+
// Desktop is unable to reach the automatically mapped one for some reason.
40+
ExposedPorts: []string{"2375", "50000:5000"},
3941
WaitingFor: wait.ForAll(
4042
wait.ForListeningPort("2375"),
4143
wait.ForListeningPort("5000"),

0 commit comments

Comments
 (0)