When using Docker Layer Caching (DLC) in AWS, the image layers are saved using separate external volumes of Elastic Block Store (EBS) and attached to the instances running machine and Remote Docker jobs. This allows for re-use of docker images across jobs to optimize build times.
First, confirm that projects are using
The EBS volumes are used when
docker_layer_caching is set as
true for a project. To support docker layer caching, the volumes are not removed until a period of inactivity (by default, 3 days) has elapsed.
It is possible to enable faster removal of the volumes by shortening the threshold for inactivity.
If you visit the Settings page of your Replicated console and click on "Show advanced settings" under "VM Provider", there is a field called "Inactivity period before clearing Docker cache storage volumes (days)". Reducing the value will enable faster garbage collection of unused volumes.