Automatic cache clear is not working with Docker in v9.0-alpine
Summary
I use the GitLab Runner as Docker container with docker configuration. Delete of cache images is not working after a job is succeeded. I have disabled the cache in my
config.toml
file
My config.toml
file:
concurrent = 10
check_interval = 0
[[runners]]
name = "maven-java8"
url = "http://gitlab.avidesmedia/"
token = "c3479a48b4c100ea8e5a474bc95e31"
executor = "docker"
[runners.docker]
tls_verify = false
image = "maven:3.3.9-jdk-8-alpine"
privileged = false
disable_cache = true
volumes = ["/cache", "/var/lib/apps/gitlab-runner/maven:/root/.m2:rw", "/var/lib/apps/gitlab-runner/sonar:/root/.sonar:rw"]
[runners.cache]
Actual behavior
Cache images not removed if a job is succeeded with cache is disabled configuration
Expected behavior
Cache images removed if a job is succeeded with cache is disabled configuration
Environment description
I use a custom installation with the Docker image of GitLab-v9.0 and GitLab-Runner-v9.0 (alpine)
Used GitLab Runner version
docker exec -i gitlab-runner gitlab-runner --version
Version: 9.0.0
Git revision: 08a9e6f
Git branch: 9-0-stable
GO version: go1.7.5
Built: Wed, 22 Mar 2017 16:29:52 +0000
OS/Arch: linux/amd64