Simply use Docker Image from Gitlab Container Registry

I simply want to use a docker image that has been pushed to our Gitlab Container Registry.

Currently using Docker as our executor. No fancy configuration has been done. Request are timing out and also getting forbidden errors. When using docker hub images, everything works great.

ci file

image: docker:latest
services:
  - docker:dind
before_script:
  - echo "$CI_REGISTRY_TOKEN" | docker login registry.gitlab.com -u $CI_REGISTRY_USER --password-stdin

build-fw:
  stage: build
  image: registry.gitlab.com/a2575/filmic/fw_ez-16/odrive
  script:
    - echo "Buiding FW"
  tags:
    - docker

job logs

Running with gitlab-runner 14.2.0 (58ba2b95)
  on Docker HfsQ23Co
Preparing the "docker" executor
00:41
Using Docker executor with image registry.gitlab.com/a2575/filmic/fw_ez-16/odrive:latest ...
Starting service docker:dind ...
Pulling docker image docker:dind ...
Using docker image sha256:8e5d106d317b2ddf45e60b5ba90a53082d306fac5c96e36ef3f2ad48e9719adb for docker:dind with digest docker@sha256:1efacb06edbb1e2bd4a39dcc69883866c7dd98562a49fa97d7d29c2da1c3974f ...
Waiting for services to be up and running...
Authenticating with credentials from /Users/osxrunner/.docker/config.json
Pulling docker image registry.gitlab.com/a2575/filmic/fw_ez-16/odrive:latest ...
WARNING: Failed to pull image with policy "always": Error response from daemon: Head "https://registry.gitlab.com/v2/a2575/filmic/fw_ez-16/odrive/manifests/latest": denied: access forbidden (manager.go:205:0s)
ERROR: Preparation failed: failed to pull image "registry.gitlab.com/a2575/filmic/fw_ez-16/odrive:latest" with specified policies [always]: Error response from daemon: Head "https://registry.gitlab.com/v2/a2575/filmic/fw_ez-16/odrive/manifests/latest": denied: access forbidden (manager.go:205:0s)
Will be retried in 3s ...
Using Docker executor with image registry.gitlab.com/a2575/filmic/fw_ez-16/odrive:latest ...
Starting service docker:dind ...
Pulling docker image docker:dind ...
Using docker image sha256:8e5d106d317b2ddf45e60b5ba90a53082d306fac5c96e36ef3f2ad48e9719adb for docker:dind with digest docker@sha256:1efacb06edbb1e2bd4a39dcc69883866c7dd98562a49fa97d7d29c2da1c3974f ...
Waiting for services to be up and running...
Authenticating with credentials from /Users/osxrunner/.docker/config.json
Pulling docker image registry.gitlab.com/a2575/filmic/fw_ez-16/odrive:latest ...
WARNING: Failed to pull image with policy "always": Error response from daemon: Get "https://registry.gitlab.com/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) (manager.go:205:15s)
ERROR: Preparation failed: failed to pull image "registry.gitlab.com/a2575/filmic/fw_ez-16/odrive:latest" with specified policies [always]: Error response from daemon: Get "https://registry.gitlab.com/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) (manager.go:205:15s)
Will be retried in 3s ...
Using Docker executor with image registry.gitlab.com/a2575/filmic/fw_ez-16/odrive:latest ...
Starting service docker:dind ...
Pulling docker image docker:dind ...
Using docker image sha256:8e5d106d317b2ddf45e60b5ba90a53082d306fac5c96e36ef3f2ad48e9719adb for docker:dind with digest docker@sha256:1efacb06edbb1e2bd4a39dcc69883866c7dd98562a49fa97d7d29c2da1c3974f ...
Waiting for services to be up and running...
Authenticating with credentials from /Users/osxrunner/.docker/config.json
Pulling docker image registry.gitlab.com/a2575/filmic/fw_ez-16/odrive:latest ...
Using docker image sha256:6d649ceffd031f3488a3b77b47e1fa50157f65284c2816ad127b86628e7ee456 for registry.gitlab.com/a2575/filmic/fw_ez-16/odrive:latest with digest registry.gitlab.com/a2575/filmic/fw_ez-16/odrive@sha256:790fac25f701b9797c641d86ae70fd08b2441782f86e77081166d75e2d9440f1 ...
Preparing environment
00:00
Running on runner-hfsq23co-project-29792234-concurrent-0 via osxrunners-Mini.int.xx.com...
Getting source from Git repository
00:02
Fetching changes with git depth set to 50...
Reinitialized existing Git repository in /builds/a2575/filmic/fw_ez-16/.git/
Checking out 47557299 as main...
Skipping Git submodules setup
Executing "step_script" stage of the job script
00:00
Using docker image sha256:6d649ceffd031f3488a3b77b47e1fa50157f65284c2816ad127b86628e7ee456 for registry.gitlab.com/a2575/filmic/fw_ez-16/odrive:latest with digest registry.gitlab.com/a2575/filmic/fw_ez-16/odrive@sha256:790fac25f701b9797c641d86ae70fd08b2441782f86e77081166d75e2d9440f1 ...
$ echo "$CI_REGISTRY_TOKEN" | docker login registry.gitlab.com -u $CI_REGISTRY_USER --password-stdin
/bin/bash: line 121: docker: command not found
Cleaning up file based variables
00:01
ERROR: Job failed: exit code 1