Hi,
It there a way to change the ssh git clone path from ssh://[email protected]:10022/group/project.git to [email protected]/group/project.git or at least to [email protected]:10022/group/project.git?
Thank you in advance.
if you want the clone paths to look like [email protected], then you need to use port 22 for the SSH server. If you are using the default docker-compose.yml, you would need to change 10022:22 to 22:22 and GITLAB_SSH_PORT=10022 to GITLAB_SSH_PORT=22. With this change, the host port 22 will be forwarded to the container port 22. This means that if you have an SSH server running on the host on port 22, you will first need to update the host ssh server config to listen on some other port.
Great, thank you for the detailed description.
Is there a way to remove the "ssh://" from the git clone url and how to reconfigure or restart Gitlab in order changes to take effect, because as gitlab-ctl reconfigure is only available in omnibus?
switching to port 22 will remove the ssh:// from the clone url.
to reconfigure, you should stop the container, remove stopped container, make the changes in compose.yml and start again.
Thank you very much. This is exactly what I was looking for.
Hi,
When I've tried to change the Gitlab configuration to publish 22:22 for ssh I've received the following error:
ERROR: failed to create endpoint docker_gitlab on network bridge: Error starting userland proxy: listen tcp 0.0.0.0:22: bind: address already in use
I've researched for a solution a lot but with no success. Does someone faced the same issue and is there a solution?
This is because the port 22 is already in use by the ssh server on the
host. You need to update the host ssh config to listen on some other port
On Feb 11, 2016 8:25 PM, "psstefanov" [email protected] wrote:
Hi,
When I've tried to change the Gitlab configuration to publish 22:22 for
ssh I've received the following error:
ERROR: failed to create endpoint dockercitoolstack_gitlab_1 on network
bridge: Error starting userland proxy: listen tcp 0.0.0.0:22: bind:
address already in useI've researched for a solution a lot but with no success. Does someone
faced the same issue and is there a solution?—
Reply to this email directly or view it on GitHub
https://github.com/sameersbn/docker-gitlab/issues/601#issuecomment-182896867
.
Thank you again, that solved the issue.
Most helpful comment
Hi,
When I've tried to change the Gitlab configuration to publish 22:22 for ssh I've received the following error:
ERROR: failed to create endpoint docker_gitlab on network bridge: Error starting userland proxy: listen tcp 0.0.0.0:22: bind: address already in useI've researched for a solution a lot but with no success. Does someone faced the same issue and is there a solution?