Skip to content
Snippets Groups Projects
Verified Commit 0e6e6b53 authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

gitlab_runner: Update for changed volume pruning behavior in Docker 23.0

"docker system prune --volumes" does no longer prune named volumes in
Docker 23.0[1][2], so use "docker volume prune --all"[3] for pruning
named volumes.

[1] https://github.com/docker/cli/issues/4028
[2] https://github.com/moby/moby/pull/44259
[3] https://github.com/docker/cli/pull/4229
parent c392043e
No related branches found
No related tags found
No related merge requests found
Pipeline #83980 passed
......@@ -3,5 +3,6 @@ Description=Cleanup containers, images and volumes produced by GitLab Runner
[Service]
Type=oneshot
ExecStart=docker system prune --force --filter label=com.gitlab.gitlab-runner.managed=true --volumes
ExecStart=docker system prune --force --filter label=com.gitlab.gitlab-runner.managed=true
ExecStart=docker volume prune --all --force --filter label=com.gitlab.gitlab-runner.managed=true
ExecStart=docker image prune --all --force --filter until=168h
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment