See how the project is configured in .gitlab-ci-local-env
docker network create gitlab-ci-local-registry
docker run -d --network gitlab-ci-local-registry --name gitlab-ci-local-registry registry:2
gitlab-ci-local --network gitlab-ci-local-registry --cwd examples/docker-in-docker-build-with-local-registry/