We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a524747 commit 9c979f2Copy full SHA for 9c979f2
test/integration/utils/test_container_utils.go
@@ -9,6 +9,8 @@ import (
9
"regexp"
10
"testing"
11
12
+ "github.com/docker/docker/api/types/container"
13
+
14
"github.com/docker/docker/api/types"
15
"github.com/stretchr/testify/assert"
16
"github.com/stretchr/testify/require"
@@ -73,6 +75,11 @@ func StartContainer(
73
75
},
74
76
ExposedPorts: []string{"9091/tcp"},
77
WaitingFor: wait.ForLog(parameters.LogMessage),
78
+ HostConfigModifier: func(hostConfig *container.HostConfig) {
79
+ hostConfig.ExtraHosts = []string{
80
+ "host.docker.internal:host-gateway",
81
+ }
82
+ },
83
Networks: []string{
84
containerNetwork.Name,
85
0 commit comments