Server 3.x Docker Layer Caching: EBS Volumes Are Not Deleting

Overview

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.

 

Solution

First, confirm that projects are using docker_layer_caching.

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.

 

mceclip0.png

 

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.

 

Additional Resources:

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.