8

Regarding fargate - since it seems we can't run containers in privileged mode and also cannot mount /var/run/docker.sock, has anyone figured out a good solution for building/publishing docker images inside fargate tasks?

JesterXIII
  • 139
  • 10

2 Answers2

1

You probably want AWS Codebuild

Peter Johnson
  • 2,673
  • 22
  • 14
1

I came upon this question after trying to run Jenkins builder slaves in Fargate. Previously they ran in ECS on EC2 instances with the docker.sock mounted.
I considered trying DinD but with Fargate currently having the maximum storage size of 10 GB I will abandon this idea for slaves. We would simply want to be able to cache more data before pruning or recycling the slave.

In my opinion storage size is also a factor when considering to build Docker containers in Fargate.

Jonatan
  • 720
  • 7
  • 12