Skip to content

Adding a DinD example#581

Merged
Vlatombe merged 1 commit intojenkinsci:masterfrom
jglick:dind
Aug 26, 2019
Merged

Adding a DinD example#581
Vlatombe merged 1 commit intojenkinsci:masterfrom
jglick:dind

Conversation

@jglick
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

@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