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.
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.