After searching a lot on the internet, about the problem I am having when registering the gitlab runner I was able to verify that the problem was related to ssl certificates. I looked for solutions to the problem and came across this solution:
I did these step by step inside the gitlab container.
Before performing all these procedures the error that appeared when trying to register the runner was this:
After performing the procedure from the link above, the error that appears is this:
And here it is the Docker Compose tha I’m using:
web: image: 'gitlab/gitlab-ce:latest' restart: always hostname: serverIP environment: GITLAB_OMNIBUS_CONFIG: | external_url 'https://serverIP' ports: - '80:80' - '443:443' volumes: - '$GITLAB_HOME/config:/etc/gitlab' - '$GITLAB_HOME/logs:/var/log/gitlab' - '$GITLAB_HOME/data:/var/opt/gitlab' runner: restart: always image: 'gitlab/gitlab-runner:alpine' volumes: - './gitlab/runner:/etc/gitlab-runner:Z' register-runner: restart: 'no' image: 'gitlab/gitlab-runner:alpine' volumes: - './gitlab/runner:/etc/gitlab-runner:Z' command: - register - '--non-interactive' - '--locked=false' - '--name=Docker Runner' - '--executor=docker' - '--docker-volumes=/var/run/docker.sock:/var/run/docker.sock' environment: - 'CI_SERVER_URL=https://serversIP/' - REGISTRATION_TOKEN=see_gitlab_admin_runner_setup
I don’t know what it means, nor how to solve it. And I also don’t know what this IP SANs means or what it is. Thank you in advance who can take some of your time to help me solve this problem