Skip to main content
22 votes
Accepted

Docker In Kubernetes Deployment

Unverified as it sounds brittle to me to start a container outside of k8s supervision, but you should be able to mount /var/run/docker.sock with a hostPath volume. Example variation from the ...
Tensibai's user avatar
  • 11.4k
19 votes
Accepted

Why is Docker-in-Docker considered bad?

Continuous Integration Concerns In short: Docker in Docker (dind) doesn't handle concurrency well. The reason why you shouldn't use dind for CI is because Docker was designed to have exclusive ...
Peter G's user avatar
  • 1,102
9 votes
Accepted

Gitlab CI error during connect: Get http://docker:2375/v1.40/containers/json?all=1: dial tcp: lookup docker on xx.xx.xx.x:xx: no such host

I might have skipped the optional installation of docker in my Ubuntu instance, so if the gitlab runner is going to use Docker, remember to install it: curl -sSL https://get.docker.com/ | sh I got ...
punkbit's user avatar
  • 349
5 votes
Accepted

What are alternatives for Docker in Docker (dind) usage for Jenkins slave running in container?

To avoid relying on dind (out of building new images from a dockerfile which should be ok) I'd look around Jenkins's kubernetes plugin. It obviously needs to bring to life a kubernetes cluster but ...
Tensibai's user avatar
  • 11.4k
4 votes

Build Docker images with DinD and BuildKit

Caching of layers with buildkit in an external registry requires an extra step or two depending on how you want to cache your layers. The easy option is to include a build arg that enables the inline ...
BMitch's user avatar
  • 3,330
4 votes
Accepted

Multiple runners for all projects OR single runner per project

After some research i found out that shared runners are good for the projects that are very much the same, and specific runners are better for the projects that are not like any project. Shared ...
SurudoiRyu's user avatar
3 votes

Docker In Kubernetes Deployment

Although this is a working solution (I use it myself), there some drawbacks for running Docker in a Kubernetes pod by mounting /var/run/docker.sock Mostly the fact you are working with Docker ...
Eldad Assis's user avatar
2 votes

Gitlab CI error during connect: Get http://docker:2375/v1.40/containers/json?all=1: dial tcp: lookup docker on xx.xx.xx.x:xx: no such host

I want to share the solution! just add image = docker:stable and privileged = true and that's all! enjoy!
Andrey Mashukov's user avatar
2 votes
Accepted

docker build throws UnknownHostException with jenkins dind slave + kubernetes plugin

Found the answer here Just add --network=host to docker build or docker run. docker build --network=host foo/bar:latest .
Abdennour TOUMI's user avatar
1 vote

Run docker-in-docker container alongside Jenkins agent

I wrote about Jenkins Docker in Docker Agent which you may find useful. The article answers your questions in detail. I'll answer them shortly here as well: Why having it running as two containers? ...
rokpoto.com's user avatar
1 vote

Running builds requiring docker daemon in Jenkins installed using helm and running as containerd container

There are ways to do it but I've not been able to manage it. I would recommend sidestepping the problem by using kaniko. You can add a purpose built kaniko container into your 'build' agent k8s ...
david_beauchamp's user avatar
1 vote

Multiple Microservices in CI environment

So if we change it for one service, we need to update it in each docker-compose.yml in each project. That's sounds like duplicate code and there are many ways to avoid that. But without more detailed ...
lukket's user avatar
  • 31
1 vote

Multi platform test on Travis-CI using Docker

This functionality is built straight into travis. Have a look at here. Secondly you should not need to specify a branch as part of your make script as travis will triggered on a specific branch and ...
Robert's user avatar
  • 133

Only top scored, non community-wiki answers of a minimum length are eligible