克隆gerrit项目到我的主机上

我正在docker上运行gerrit。 我从dockerhub获得了图像。 我正在这样运行:

docker run -it -p 8080:8080 -p 29418:29418 --rm -e AUTH_TYPE='DEVELOPMENT_BECOME_ANY_ACCOUNT' -v /home/gerrit-site:/home/gerrit/site -v /root/.ssh/id_rsa.pub:/root/.ssh/id_rsa.pub -v /root/.ssh/id_rsa:/root/.ssh/id_rsa -v /home/accounts/ssh-keys/:/home/gerrit/ssh-keys --name gerrit docker.io/fabric8/gerrit:latest 

该图像正在运行,我可以通过url,即IP:8080访问它。当我尝试通过http创build的任何项目,它的作品,我得到一个克隆回购在我的主机上。 但是当我通过SSH尝试克隆时,出现以下错误,

  Cloning into 'project'... ssh: connect to host host_ip port 29418: Connection refused fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. 

后来我也尝试了,把我的主机ssh密钥join到gerrit中,并试图克隆没有成功。

当我尝试SSH IP:29418,

 ssh: Could not resolve hostname ip:29418: Name or service not known 

我不知道我哪里错了,需要一些指导。