Hello,
I have two containers setup, Jenkins and Gitlab. I am trying to run a git clone inside the Jenkins container but I’m not having any luck.
I have tried using the container name:
jenkins@xxxxxxx:/tmp$ git clone ssh://git@gitlab:2222/org/app.git
Cloning into ‘org-app’…
ssh: connect to host gitlab port 2222: Connection refused
fatal: Could not read from remote repository.ory.
I have tried using the hostname of the host but I can’t route to my host:
jenkins@XXXX:/tmp$ git clone ssh://git@hostname.nameofsomething.com:2222/org/app.git
Cloning into ‘org-app’…
ssh: connect to host hostname.nameofsomething.com port 2222: No route to host
fatal: Could not read from remote repository.
How do people usually clone from container to container?
Thanks in advance!