@@ -87,13 +87,13 @@ func runWithDindSwarmAndRegistry(t *testing.T, todo func(dindSwarmAndRegistryInf
8787 // Solution found is: use host external IP (not loopback) so accessing from within installer container will reach the right container
8888
8989 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]" ,
9191 "-e" , "REGISTRY_HTTP_ADDR=0.0.0.0:5000" )
9292 defer registry .StopNoFail ()
9393 registryAddress := registry .GetAddress (t )
9494
9595 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
9797 defer swarm .Stop (t )
9898 swarmAddress := swarm .GetAddress (t )
9999
@@ -117,7 +117,7 @@ func runWithDindSwarmAndRegistry(t *testing.T, todo func(dindSwarmAndRegistryInf
117117 runner .localCmd = runLocalCmd
118118 runner .dockerCmd = runDockerCmd
119119 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 ... )
121121 return runLocalCmd (args ... )
122122 }
123123 todo (runner )
0 commit comments