Ich traf dieses Problem vor langer Zeit und kann es überhaupt nicht lösen. Kann mir jemand Hilfe geben?Git Klon kann Host innerhalb Docker Container nicht erreichen
Ich habe einen Docker Container, und dann in Docker, möchte ich eine interne Git Repository klonen:
git clone [email protected]:ngcsc/ngcsc.git
Und ich habe diesen Fehler:
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.
Wenn ich curl https://git.xxx.net verwenden, traf ich auch Fehler:
curl: (7) Failed connect to git.xxx.net:443; No route to host
ich kann ot kräuseln Ihre https-Website, wie zum Beispiel curl https://www.google.com
Ich weiß nicht, warum einige interne Website innerhalb Docker erreicht werden kann, einige nicht. Alle Vorschläge werden geschätzt
könnte hier relevant sein: http://stackoverflow.com/a/31328031/6309 und http://askubuntu.com/a/136414/5470 und http://blog.oddbit.com/2014/08/ 11/Vier-Wege-zu-verbinden-ein-docker / – VonC