crashsystems / gitlab-docker

Automated buld of GitLab with Docker.io
195 stars 56 forks source link

Reusing SSH port #2

Closed doubleyou closed 10 years ago

doubleyou commented 11 years ago

If you have sshd running on the host system (which is mostly the case), the container doesn't start.

Of course, port 22 can be forwarded to some other port number, like 9022, but in that case you'll have to use different names to SSH to that machine, either for host system SSH login or for git.

Any thoughts how to fix this?

crashsystems commented 11 years ago

That's a good question. I did this because I'm not aware of a way to use SSH as a git transport over a nonstandard port. So for this, I just edited the host's ssh config to run on port 23.

nls44 commented 11 years ago

https://github.com/crashsystems/gitlab-docker/pull/6 fixes this. This allows you to have Git urls as such:

ssh://git@localhost:45678/root/testproject.git

This also doesn't require you to edit the ~/.ssh/config either.