hello world ![]()
i’m latest running gitlab (ce) w/ gitlab-runner image on docker host, and while it actually works sometimes, it doesn’t work other times and i can’t figure out why…
gitlab-runner last message when it stops working is:
root@dos:/opt/gitlab-runner# docker-compose logs --tail 1
gitlab-runner-gitlab-runner-1 | WARNING: Checking for jobs... failed runner=-z4mfftsD status=couldn't execute POST against https://gitlab.X.app/api/v4/jobs/request: Post "https://gitlab.X.app/api/v4/jobs/request": dial tcp 172.20.0.2:443: connect: connection refused
root@dos:/opt/gitlab-runner#
both containers are running within same docker’ network gitlab_default
root@dos:/opt/gitlab-runner# docker network inspect gitlab_default
[
{
"Name": "gitlab_default",
"Id": "7b0961116f9e9de48df0a858950a71d9b9a784334e6cf18cd28cbf7a8e935b87",
"Created": "2024-08-08T14:34:58.807259045Z",
"Scope": "local",
"Driver": "bridge",
"EnableIPv6": false,
"IPAM": {
"Driver": "default",
"Options": null,
"Config": [
{
"Subnet": "172.20.0.0/16",
"Gateway": "172.20.0.1"
}
]
},
"Internal": false,
"Attachable": false,
"Ingress": false,
"ConfigFrom": {
"Network": ""
},
"ConfigOnly": false,
"Containers": {
"627a2ccbf37930ecc4fa95ec98ef3753c9c3d78b305b8c911a472d1b69f1fa7a": {
"Name": "gitlab-web-1",
"EndpointID": "10d4127cf50847ba4bbc53de197c69625c2dd5fd8103092e12db20e3d121665e",
"MacAddress": "02:42:ac:14:00:02",
"IPv4Address": "172.20.0.2/16",
"IPv6Address": ""
},
"9660cec2dfa8350c31ab13d9457a200ee3a5a6dd35d7fc7ce6f1db9c26b8518b": {
"Name": "gitlab-runner-gitlab-runner-1",
"EndpointID": "eafb6f0108394b0dba8d292f47cdffac746fde053c506bc598848f6e10176465",
"MacAddress": "02:42:ac:14:00:03",
"IPv4Address": "172.20.0.3/16",
"IPv6Address": ""
}
},
"Options": {},
"Labels": {
"com.docker.compose.network": "default",
"com.docker.compose.project": "gitlab",
"com.docker.compose.version": "2.20.3"
}
}
]
root@dos:/opt/gitlab-runner#
why can’t gitlab-runner reach gitlab is beyond me…
my environment:
root@dos:~# uname -a
Linux dos 6.1.0-23-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64 GNU/Linux
root@dos:~# cat /etc/debian_version
12.6
root@dos:~# docker --version
Docker version 27.1.1, build 6312585
root@dos:~#
Please advise.
Thanks in advance!
REF: Dial tcp 172.20.0.2:443: connect: connection refused - General Discussions - Docker Community Forums