gitlabgitlab-cix509certificategitlab-runner

Gitlab-Runner | x509: certificate signed by unknown authority


I'm trying to build then push image on gitlab container registry but i found below issue i'm using on premise Gitlab instance and the Gitlab runner is ubuntu that using shell executor I appreciate if someone can help to solve this issue Thanks a lot in advance

gitlab-runner config.toml


Solution

  • Edit the daemon.json file, whose default location is /etc/docker/daemon.json inside gitlab-runner:

    {
      "insecure-registries" : ["gitlab.example.com:5050"]
    }