DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Docker inside Docker for Jenkins

4 years ago itnext.io

Summary: This is a summary of an article originally published by the source. Read the full original article here →

In our company, we currently run all internal services on dockers, for example, Gitlab, YouTrack, and Jenkins. I assume that you already know Docker, Jenkins, and Ubuntu (or other Linux), because we use them as an example.

Now we need to use that image to run our container.

Now inside the container, when we’ll run docker ps command, we should see all containers running on our host instead of containers running on our jenkins container.

Next, we adjust our Dockerfile, to make sure that the docker group has the same id on host and container and that jenkins user is in that group.

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com