docker-in-docker

gitlab-ci.yml & docker-in-docker (dind) & curl returns connection refused on shared runner

坚强是说给别人听的谎言 提交于 2020-01-23 22:09:29
问题 I'm trying to create a simple GitLab CI where I spin up a container using docker-compose up then try to access it using curl and finally tear it down using docker-compose down. docker-compose up spins up perfectly fine and I can see the container up using docker ps -a, however when I curl, I get "connection refused". here is my gitlab-ci.yml image: docker services: - docker:dind before_script: - apk add --update python py-pip python-dev && pip install docker-compose - apk add --update curl &&

gitlab-ci.yml & docker-in-docker (dind) & curl returns connection refused on shared runner

荒凉一梦 提交于 2020-01-23 22:08:28
问题 I'm trying to create a simple GitLab CI where I spin up a container using docker-compose up then try to access it using curl and finally tear it down using docker-compose down. docker-compose up spins up perfectly fine and I can see the container up using docker ps -a, however when I curl, I get "connection refused". here is my gitlab-ci.yml image: docker services: - docker:dind before_script: - apk add --update python py-pip python-dev && pip install docker-compose - apk add --update curl &&

Docker in Docker - volumes not working: Full of files in 1st level container, empty in 2nd tier

廉价感情. 提交于 2019-12-30 06:49:40
问题 I am running Docker in Docker (specifically to run Jenkins which then runs Docker builder containers to build a project images and then runs these and then the test containers). This is how the jenkins image is built and started: docker build --tag bb/ci-jenkins . mkdir $PWD/volumes/ docker run -d --network=host \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /usr/bin/docker:/usr/bin/docker \ -v $PWD/volumes/jenkins_home:/var/jenkins_home \ --name ci-jenkins bb/ci-jenkins Jenkins works

Can you deploy Docker-in-Docker to the Heroku Platform?

筅森魡賤 提交于 2019-12-24 21:00:39
问题 I have been experimenting with building and pushing Docker images to the Heroku container registry, then releasing them like so: heroku container:login heroku create some-app-name heroku container:push web --app some-app-name heroku container:release web --app some-app-name I have a particular use case that requires me to have the Docker Daemon running inside of a Docker container. To my understanding, it is not possible to run the Docker Daemon within a Docker container unless the -

Docker in Docker - volumes not working: Full of files in 1st level container, empty in 2nd tier

梦想与她 提交于 2019-11-30 21:32:29
I am running Docker in Docker (specifically to run Jenkins which then runs Docker builder containers to build a project images and then runs these and then the test containers). This is how the jenkins image is built and started: docker build --tag bb/ci-jenkins . mkdir $PWD/volumes/ docker run -d --network=host \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /usr/bin/docker:/usr/bin/docker \ -v $PWD/volumes/jenkins_home:/var/jenkins_home \ --name ci-jenkins bb/ci-jenkins Jenkins works fine. But then there is a Jenkinsfile based job, which runs this: docker run -i --rm -v /var/jenkins_home