Skip to content

Commit 1f46586

Browse files
committed
Use config
1 parent 58ff02e commit 1f46586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/docker/deployer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ func deployImage(
348348
// interact with a complement-controlled test server.
349349
// Note: this feature of docker landed in Docker 20.10,
350350
// see https://github.com/moby/moby/pull/40007
351-
extraHosts = []string{"host.docker.internal:host-gateway"}
351+
extraHosts = []string{fmt.Sprintf("%s:host-gateway", cfg.HostnameRunningComplement)}
352352
}
353353

354354
for _, m := range cfg.HostMounts {

0 commit comments

Comments
 (0)