3 ms·
Yes, using docker compose to ensure that all of the containers are connected to each other, or using minikube to simulate deploying a Kubernetes stack. If your
by AaronFriel 8y ago
Yes, using docker compose to ensure that all of the containers are connected to each other, or using minikube to simulate deploying a Kubernetes stack.
If your test scripts are running as part of the "before_script", "script", or "after_script" block, they aren't running in the network namespace configured by Docker in Docker and won't have the same name resolution, so you'll need to port map your Docker containers and your test scripts will need to use "localhost" and ports to connect to your containers.
If your tests are themselves run in a Docker container, it should work as expected.