I'm running a Jenkins pipeline on Ubuntu 16.04, using a Docker image to run unit tests on my Android project. I configured Jenkins to only save 1 build at a time and discard older builds (the vps Im using only have 40GB of disk space). But each time I build, the var/lib/docker/aufs/diff folder grows by 500Mb~ and this seems to be impossible to clean up.
Would be thankful for any tips on how I can solve this problem!
Do you know which folder is Jenkins using to build yor pipeline? I think you need to pass a local directory (host) as a volume to your container