Localhost Gitlab Pipeline DNS problem with Docker Executor

Hello,
I have installed gitlab on my CentOS VM
I have also installed gitlab runner on the same VM
Docker is installed on the VM

My external_url is :

http://gitlab.localdomain.local:8080

In the /etc/hosts, I have added the following entry :

127.0.0.1 gitlab.localdomain.local

I created a simple hello world script in the YAML pipeline file with just one job (script : echo “Hello Wordl”)

In my firewalld, I have added the following rule

firewall-cmd --zone=public --permanent --add-port=8080/tcp

When I run the pipeline I get the following error :

fatal: unable to access 'http://gitlab.localdomain.local:8080/root/devops.git/': Could not resolve host: gitlab.localdomain.local

What should I do to fix it guys ?