mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
"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
9 lines
359 B
SYSTEMD
9 lines
359 B
SYSTEMD
[Unit]
|
|
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
|
|
ExecStart=docker volume prune --all --force --filter label=com.gitlab.gitlab-runner.managed=true
|
|
ExecStart=docker image prune --all --force --filter until=168h
|