前景提要
HDC调试需求开发(15万预算),能者速来!>>>
根据官方https://docs.gitlab.com/omnibus/docker/ 安装文档,使用命令 sudo docker run --detach \ --hostname gitlab.example.com \ --publish 443:443 --publish 80:80 --publish 22:22 \ --name gitlab \ --restart always \ --volume /srv/gitlab/config:/etc/gitlab:Z \ --volume /srv/gitlab/logs:/var/log/gitlab:Z \ --volume /srv/gitlab/data:/var/opt/gitlab:Z \ gitlab/gitlab-ce:latest Error response from daemon: driver failed programming external connectivity on endpoint gitlab (2ffc17fdd0d53ca9e55493fe0a2daef1ef7db29b80f5125070087ba2e7f5fcec): Error starting userland proxy: listen tcp 0.0.0.0:22: bind: address already in use
来启动容器,总是会报端口22冲突,也能理解,22端口是被用来作主机的ssh端口
但是官方文档为什么这么写呢
另外,我将主机ssh端口更改为10022为,gitlab能起来,但是ssh地址还是不能用,bad file number: 10022(已排除防火墙)
网上搜了很多资料都没有找到原因