When using GitLab CI, as well as the gitlab-ci-multi-runner
, I\'m unable to get internally-started Docker containers to expose their ports to the \"host\", whic
When using docker:dind
a container is created and your docker-compose containers get setup within it. It exposes the ports to localhost within the docker:dind
container. You cannot access this as localhost
from the environment that your code is executing in.
A hostname of docker
is setup for you to reference this docker:dind
container. You can check by using cat /etc/hosts
.
Instead of referencing localhost:9143
you should use docker:9143
.