一、问题
搭建后git push 提交代码
# ssh: Could not resolve hostname gitlab.example.com: Name or service not known
# fatal: Could not read from remote repository.
# Please make sure you have the correct access rightsand the repository exists.
二、原因
1本地解析不了Docker 内部设置的域名
三、解决方法
四、参考文章
【Git】ssh: Could not resolve hostname gitlab.123.com: Name or service not known-CSDN博客