Changes
Page history
update gitlab CI playbook to reflect rootless podman mode and new cleanup
authored
Oct 07, 2025
by
anarcat
Hide whitespace changes
Inline
Side-by-side
service/ci.md
View page @
89b803a9
...
@@ -234,21 +234,21 @@ normally [purged regularly](#image-volume-and-container-storage-and-caching) but
...
@@ -234,21 +234,21 @@ normally [purged regularly](#image-volume-and-container-storage-and-caching) but
might use up too much space all of a sudden.
might use up too much space all of a sudden.
To diagnose this issue better, you can see the running containers
To diagnose this issue better, you can see the running containers
with:
with
(as the
`gitlab-runner`
user)
:
docker
ps
podman
ps
... and include stopped or dead containers with:
... and include stopped or dead containers with:
docker
ps -a
podman
ps -a
Images are visible with:
Images are visible with:
docker
images
podman
images
And volumes with:
And volumes with:
docker
volume ls
podman
volume ls
... although that output is often not very informative because GitLab
... although that output is often not very informative because GitLab
runner uses volumes to cache data and uses opaque volume names.
runner uses volumes to cache data and uses opaque volume names.
...
@@ -258,13 +258,20 @@ rm` (for containers), `docker image rm` (for images) and `docker
...
@@ -258,13 +258,20 @@ rm` (for containers), `docker image rm` (for images) and `docker
volume rm`
(for volumes). But usually, you should probably just run
volume rm`
(for volumes). But usually, you should probably just run
the cleanup jobs by hand, in order:
the cleanup jobs by hand, in order:
docker
system prun --filter until=72h
podman
system prun
e
--filter until=72h
The time frame can be lowered for a more aggressive cleanup.
The time frame can be lowered for a more aggressive cleanup. Volumes
can be cleaned with:
Alternatively, this will also clean old containers:
podman system prune --volumes
/usr/local/sbin/tpo-docker-clean-cache
And images can be cleaned with:
podman system prune --force --all --filter until=72h
Those commands mostly come from the
`profile::podman::cleanup`
class,
which might have other commands already. Other cleanup commands are
also set in
`profile::gitlab::runner::docker`
.
The
`tpa-du-gl-volumes`
script can also be used to analyse which
The
`tpa-du-gl-volumes`
script can also be used to analyse which
project is using the most disk space:
project is using the most disk space:
...
...
...
...