The reason is that we can’t find the docker. We need to bind the docker
List all gitlab runner configuration files
find/| grep config.toml
[root@izwz99pke7zxkpm7l51t8jz ~]# find/| grep config.toml
/srv/gitlab-runner/config/config.toml
/var/lib/docker/volumes/gitlab-runner-config/_data/config.toml
/var/lib/docker/overlay2/b06ff5242ee208ee1eaa4b205801ed5daa193056526c0a01ced53dd821d28f8a/diff/etc/gitlab-runner/config.toml
/var/lib/docker/overlay2/7e84218ced6b73451784136503a22c51af06aa417e78c5ba7c29239046e9b985/merged/etc/gitlab-runner/config.toml
Volumes “/usr/bin/docker:/usr/bin/docker”, “/var/run/docker.sock:/var/run/docker.sock”
vim /srv/gitlab-runner/config/config.toml
[root@izwz99pke7zxkpm7l51t8jz ~]# vim /srv/gitlab-runner/config/config.toml
volumes = ["/cache","/usr/bin/docker:/usr/bin/docker", "/var/run/docker.sock:/var/run/docker.sock"]
Similar Posts:
- [Solved] Gitlab-runner Error: ERROR: Could not create cache adapter error=cache factory not found: factory for cache adapter “” was not registered
- [Solved] Gitlab can clone via SSH, cannot clone via HTTP, and cannot pipeline. Prompt port 80: connection rejected
- Gitlab 403 Forbidden error [How to Solve]
- GitLab Page Error: 502 Whoops, GitLab is taking too much time to respond. Try refreshing the page, or going
- [Solved] K8s deployment gitlab error: Failed to create repository
- [Solved] k8s Deploy postgresql Error: initdb: error: directory “/var/lib/postgresql/data” exists but is not empty
- Gitlab Access error Whoops, GitLab is taking too much time to respond
- Gitlab-error: RPC failed; result=22, HTTP code = 500 settlement
- [Solved] Git Clone Error: Please make sure you have the correct access rights and the repository exists.
- [Solved] sourceTree pull code error: remote: HTTP Basic: Access denied