Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a DinD example #581

Merged
merged 1 commit into from
Aug 26, 2019
Merged

Adding a DinD example #581

merged 1 commit into from
Aug 26, 2019

Conversation

jglick
Copy link
Member

@jglick jglick commented Aug 22, 2019

Tested on GKE, and saw something similar running with a Kops cluster on AWS.

Could also experiment with rootless Docker.

Note that every build gets a fresh Docker daemon, so there is no local layer cache between builds. This could make builds slower, though it also means builds are more deterministic and there is no need for a GC system. I have not experimented with using a PersistentVolumeClaim to retain the daemon storage across builds. Probably better to set up a local registry in the cluster as a proxy, just like we would advise for Maven dependencies and the like.

Copy link
Member

@Vlatombe Vlatombe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@Vlatombe Vlatombe merged commit 4d0ddcc into jenkinsci:master Aug 26, 2019
@Vlatombe Vlatombe added the chore Maintenance label Aug 26, 2019
@jglick jglick deleted the dind branch August 26, 2019 13:29
@olljanat
Copy link

@jglick I saw your comment on moby/moby#41285

You should replace this with solution which does bind mount for /var/run/docker.sock then you don't need disable all security features from Docker.

@schottsfired schottsfired mentioned this pull request Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants