Use images from local registry in CI

In my gitlab-ci.yml I have

image: docker:
- docker:

This works fine. But I’m in an air-gapped environment and need to pull from a local registry. Providing the full length image name (e.g. works for the “image” but not for the “services” configuration.
When I use the local registry in the services configuration I get:
error during connect: Post “https://docker:2376/v1.24/auth”: dial tcp: lookup docker on :53: no such host

How can pull from the local registry?