jenkins - sharing docker.sock or docker in docker (dind) -
we're running mesos cluster , jenkins continuous integration workflow. jenkins configured mesos plugin.
previously built our docker images in mesos containers. switching docker containers building our docker images.
i've been searching advantage of building our docker images inside docker container dind image 1 "dind-jenkins-slave" found on docker hub.
with dind lose caching opportunities when sharing docker.sock of host. , dind have push privileged parameter.
what downside of sharing docker.sock of host?
i'm using sharing docker.sock approach. downside see security - want host when run docker containers. if trust people create jobs or control docker containers options run jenkins giving access main docker daemon easy solution.
Comments
Post a Comment