GitLab Runner Fatal: unable to access and could not resolve host

Hi, i am new to GitLab and experiencing issue with my runner on homelab. I am using on-premise gitlab information and a runner with docker executor. Trying to create a simple pipeline below for testing purpose:

image: docker:stable

stages:
  - Build image

docker build:
  stage: Build image
  script:
  - docker info
  - docker build -t myimage .

Below is the failed jobs screenshot:

It said unable to access and could not resolve my gitlab host

Below is the configuration on my runner. As many suggest, i put the clone_url and extra_hosts parameter on the config.toml. restart the runner but nothing works. Already spending a day to look for solution.
image

Thanks for helping.

Hi, issue has been solved using this link. It is more workaround rather than permanent solution IMO