79131482

Date: 2024-10-27 21:00:33
Score: 1
Natty:
Report link

Solution

Based on an online solution (thanks Aroon), this fix resolves the issue of Docker ignoring the /etc/hosts file inside the GitLab Runner Build-Container by adding the following line to the /etc/hosts file on the Docker host.

10.10.30.2 registry.gitlab.example.com

It’s not the most ideal solution but serves as a working workaround for now.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jasper