Dockerized Jenkins CI server with capability to build docker images via DooD (Docker outside of Docker)
- Find out your Docker GID by using
grep docker: /etc/group
orgetent group docker
- Build via
docker build -t jenkins-dood:alpine -f Dockerfile-Alpine --build-arg DOCKER_GID=999 .
docker run -d \
--name jenkins \
-v /usr/jenkins_home:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
-u 1000 \
jenkins-dood:alpine
Docker's default max size for containers is 10 GB. When building images, docker might use a container that is bigger than this limit. Follow the this guide to increase this limit.