Closed karthikeayan closed 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.
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
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
Docker rootless mode needs —privileged mode for the container, privileged mode is not allowed in Fargate
https://github.com/aws-samples/jenkins-on-aws/issues/15
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.
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
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
Docker rootless mode needs —privileged mode for the container, privileged mode is not allowed in Fargate