My overall goal is to install a self-hosted gitlab-runner that is restricted to use prepared docker images from my own docker registry only.
For that I have a system.d configuration that looks like:
/etc/systemd/system/docker.service.d/allow-private-registry-only.conf
BLOCK_REGISTRY='--block-registry=all'
ADD_REGISTRY='--add-registry=my.private.registry:8080'
By this, docker pull
is allowed to pull images from my.private.registry/
only.
After I had managed to get this working, I wanted to clean up my local registry and remove old docker images
. It was during that process when I stumbled over a docker image named gitlab/gitlab-runner-helper
which presumably is some component used by the gitlab-runner itself and presumably has been pulled from docker.io
.
Now I'm wondering if it is even possible/advisable to block images from docker.io
when using a gitlab-runner?
Any hints are appreciated!