1.2 The self hosted Gitlab runner (executable on Linux VM) is not configured properly to use DinD
Source: https://docs.gitlab.com/ee/ci/docker/using_docker_build.html#use-docker-in-docker
2.3 THIS SOLUTION IS POTENTIALLY UNSAFE – ALTERNATIVE
Alternative is to use kaniko to create the docker image.
kaniko solves two problems with using the Docker-in-Docker build method:
* Docker-in-Docker requires privileged mode to function, which is a significant security concern.
* Docker-in-Docker generally incurs a performance penalty and can be quite slow.
Source: Use kaniko to build Docker images | GitLab