I have gitlab running on docker container. Also, I have gitlab-runner installed on my Cenots7 machine. Runner configured use docker executor.
config.toml
concurrent = 1 check_interval = 0[session_server]
session_timeout = 1800[[runners]]
name = “test”
url = “http://localhost”
token = “gQfiiD4PUyPs4TiXLX9-”
executor = “docker”
log_level = “debug”
pre_clone_script = “ls -la”
clone_url = “http://localhost/”
[runners.docker]
tls_verify = false
image = “node”
privileged = false
disable_entrypoint_overwrite = false
oom_kill_disable = false
disable_cache = false
volumes = [“/cache”]
shm_size = 0
# network_mode = “gitlab_default”
# pull_policy = “never”
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
When runner take job it can`t clone repo and print error:
Cloning repository…
Cloning into ‘/builds/root/project’…
fatal: unable to access ‘http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@localhost/root/project.git/’: Failed to connect to localhost port 80: Connection refused
/bin/bash: line 64: cd: /builds/root/project: No such file or directory
ERROR: Job failed: exit code 1
#docker