Skip to content

docker service fail to respond when exposing multiple ports

When using a custom docker service with multiple ports exposed, in build log we get

Service xxx didn't respond in timely maner: 30s Consider modifying wait_for_services_timeout.

Actually the services are up, and there may be something wrong with the script in the waiting container.

log for container gitlab/gitlab-runner:service shows like

$ docker logs f0836ec3f98a
waiting for TCP connection to 172.17.0.136
172.17.0.136
172.17.0.136:465
587
25