docker-dind

Gitlab-runner in docker-compose cannot connect http://docker:2375/v1.40/info

纵然是瞬间 提交于 2021-01-28 00:31:26
问题 Short story: I have a gitlab-runner in a docker-compose and I want to be able to use DIND, but I'm facing some difficulties.... I try to create a platform which contains : a sonar gitlab ce gitlab runner a registry Theses services are started and managed by docker-compose I use the gitlab-ci to verify tests, coverage and create a docker image which is uploaded to the registry I have a single shared runner which work for testing purpose here is the config.toml : concurrent = 1 check_interval =

GitLab CI: how to connect to the docker container started in .gitlab-ci.yml script?

别来无恙 提交于 2020-02-25 04:11:04
问题 Initial task In my GitLab CI build, I want to: Start a docker container with local AmazonDB. Standard port layout: port 8000 in docker, port 8000 exposed. Of course, everything works locally, I can connect ( curl , awc-cli , Java code for Amazon DB, whatever you wish). Use it for tests, i.e. connect to it as --endpoint-url http://localhost:8000 (or any other mapped IP instead of localhost ). Problem .gitlab-ci.yml looks like this: image: docker:stable build/test: tags: - gradle - eu stage:

GitLab CI: how to connect to the docker container started in .gitlab-ci.yml script?

此生再无相见时 提交于 2020-02-25 04:10:27
问题 Initial task In my GitLab CI build, I want to: Start a docker container with local AmazonDB. Standard port layout: port 8000 in docker, port 8000 exposed. Of course, everything works locally, I can connect ( curl , awc-cli , Java code for Amazon DB, whatever you wish). Use it for tests, i.e. connect to it as --endpoint-url http://localhost:8000 (or any other mapped IP instead of localhost ). Problem .gitlab-ci.yml looks like this: image: docker:stable build/test: tags: - gradle - eu stage:

Is it ok to run docker from inside docker?

冷暖自知 提交于 2019-11-26 14:55:38
I'm running Jenkins inside a Docker container. I wonder if it's ok for the Jenkins container to also be a Docker host? What I'm thinking about is to start a new docker container for each integration test build from inside Jenkins (to start databases, message brokers etc). The containers should thus be shutdown after the integration tests are completed. Is there a reason to avoid running docker containers from inside another docker container in this way? predmijat Running Docker inside Docker (a.k.a. dind ), while possible, should be avoided, if at all possible. (Source provided below.) Instead

Is it ok to run docker from inside docker?

老子叫甜甜 提交于 2019-11-26 03:48:14
问题 I\'m running Jenkins inside a Docker container. I wonder if it\'s ok for the Jenkins container to also be a Docker host? What I\'m thinking about is to start a new docker container for each integration test build from inside Jenkins (to start databases, message brokers etc). The containers should thus be shutdown after the integration tests are completed. Is there a reason to avoid running docker containers from inside another docker container in this way? 回答1: Running Docker inside Docker (a