When using gitlab runner with docker executor files not deleted
Summary
I am using docker executor with gitlab runners and I use this cleanup tool: https://gitlab.com/gitlab-org/gitlab-runner-docker-cleanup to clean up space on the runner. However it doesnt seem to work as documented. My EC2 instance on which I was running gitlab runners reached there max memory and I am getting "not enough memory". Looks like this project has not been maintained for last 2 years as well. Is there any other approach which I can follow?
Steps to reproduce
- Setup gitlab runner with docker executor
- Use the runner to run docker build job (which pushes the image to a registry)
Example Project
What is the current bug behavior?
Runner ran out of memory.
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.9G 60K 3.9G 1% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/xvda1 7.8G 7.8G 0 100% /
What is the expected correct behavior?
After the given inputs https://github.com/university-outreach-infrastructure-tf/terraform-gitlab-runner-module/blob/master/module/variables.tf#L102 memory should be emptied and made available.