@@ -87,13 +87,13 @@ func runWithDindSwarmAndRegistry(t *testing.T, todo func(dindSwarmAndRegistryInf
87
87
// Solution found is: use host external IP (not loopback) so accessing from within installer container will reach the right container
88
88
89
89
registry := NewContainer ("registry:2" , 5000 )
90
- registry .Start (t , "--name" , "registry" , "- e" , "REGISTRY_VALIDATION_MANIFESTS_URLS_ALLOW=[^http]" ,
90
+ registry .Start (t , "-e" , "REGISTRY_VALIDATION_MANIFESTS_URLS_ALLOW=[^http]" ,
91
91
"-e" , "REGISTRY_HTTP_ADDR=0.0.0.0:5000" )
92
92
defer registry .StopNoFail ()
93
93
registryAddress := registry .GetAddress (t )
94
94
95
95
swarm := NewContainer ("docker:19.03.3-dind" , 2375 , "--insecure-registry" , registryAddress )
96
- swarm .Start (t , "--name" , "dind" , "- e" , "DOCKER_TLS_CERTDIR=" ) // Disable certificate generate on DinD startup
96
+ swarm .Start (t , "-e" , "DOCKER_TLS_CERTDIR=" ) // Disable certificate generate on DinD startup
97
97
defer swarm .Stop (t )
98
98
swarmAddress := swarm .GetAddress (t )
99
99
@@ -117,7 +117,7 @@ func runWithDindSwarmAndRegistry(t *testing.T, todo func(dindSwarmAndRegistryInf
117
117
runner .localCmd = runLocalCmd
118
118
runner .dockerCmd = runDockerCmd
119
119
runner .execCmd = func (params ... string ) string {
120
- args := append ([]string {"docker" , "exec" , "-t" , "dind" }, params ... )
120
+ args := append ([]string {"docker" , "exec" , "-t" , swarm . container }, params ... )
121
121
return runLocalCmd (args ... )
122
122
}
123
123
todo (runner )
0 commit comments