aws-samples / jenkins-on-aws

MIT No Attribution
58 stars 27 forks source link

Building docker images? #18

Closed karthikeayan closed 4 years ago

karthikeayan commented 4 years ago

This is continuation of https://github.com/aws-samples/jenkins-on-aws/issues/15

Is there a suggested approach for building Docker images from Jenkins running on Docker? Especially on Fargate.

  1. To run docker inside docker the general approach is to mount /var/run/docker.sock of the host on the container, this is not allowed in Fargate

  2. If we are running docker daemon as root user then we have to run Jenkins also as root user inside docker, this is not recommended

  3. Docker rootless mode needs —privileged mode for the container, privileged mode is not allowed in Fargate

karthikeayan commented 4 years ago

https://github.com/aws-samples/jenkins-on-aws/issues/15