Gitlab Container Registry

Hello,

I have installed Gitlab CE on CentOS 7 on a Virtual Box. I have activated the Container Registry through the insecure registry.

  build:
  image: docker:latest
  stage: build
  before_script:
  - echo $CI_BUILD_TOKEN | docker login -u "$CI_REGISTRY_USER" --password-stdin $CI_REGISTRY
  script:
  - docker build -t "$CI_REGISTRY_IMAGE" .
  - docker push "$CI_REGISTRY_IMAGE"
  only:
  - master   

Part 1, login is done successfully.
The problem is the second part “docker build”

Docker version 19.03.12, build 48a66213fe

The resolve.conf nameservers:

Thanks if anyone can help.