I met this problem long time ago and can not solve it at all. Can anyone give me some help?
I created a docker container, and then inside docker, I want to clone an internal git repository:
git clone git@git.xxx.net:ngcsc/ngcsc.git
And I got this error:
ssh: connect to host git.xxx.net port 22: No route to host
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
If I use curl https://git.xxx.net, I also met error:
curl: (7) Failed connect to git.xxx.net:443; No route to host
I can curl other https website, such as curl https://www.google.com
I don't know why some internal website can be reached inside docker, some not. Any suggestions are appreciated