awslabs / fargatecli

CLI for AWS Fargate
Apache License 2.0
893 stars 114 forks source link

Do not remove intermediate containers - to speed up consecutive builds… #63

Closed mgajda closed 6 years ago

mgajda commented 6 years ago

Since the Fargate workflow involves require repeated builds and pushes, we see that docker is overzealous in removing intermediate containers that are not tagged, and thus slowing the build.

It is better to tell it not to remove them (this patch) and keep them to shorten consecutive builds and pushes. Then, when we are indeed of more disk space, and leave development for a longer time, we can use docker prune to remove these images.

This sped up my debugging builds by far.

jpignata commented 6 years ago

LGTM