我使用codes.net創建了私有存儲庫。
我使用碼頭圖像高山和分區。
我可以得到碼頭工人,CentOS的git.coding.net/alphayan/orionv2.git successful
,但我不能去從docker-alpine.It得到git.coding.net/alphayan/test.git
返回一個錯誤,指出:Docker高山golang去編碼.NET私人回購得到錯誤
/go/srC# go get -u -v git.coding.net/alphayan/test.git
# cd .; git ls-remote https://git.coding.net/alphayan/test
fatal: could not read Username for 'https://git.coding.net': terminal prompts disabled
# cd .; git ls-remote git+ssh://git.coding.net/alphayan/test
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
# cd .; git ls-remote ssh://git.coding.net/alphayan/test
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
package git.coding.net/alphayan/test.git: cannot download, git.coding.net/alphayan/test uses insecure protocol
從CentOS的它讓我使用用戶名和密碼:
[[email protected] /]# go get -u -v git.coding.net/alphayan/test.git
Username for 'https://git.coding.net':
最後,我發現它是由git的版本引起的,使用git 1.8.3的centos和使用git 2.11.0的alpine。
然後我用2.11.0改變了centos git的版本,與高山變成了一樣的錯誤。 我想我可以修改golang或者git源文件解決這個問題, 有人可以幫我嗎?認爲〜!
有什麼錯誤?也看起來你有一個私人的git回購 –
使用高山,git的版本是2.11,它不需要我輸入用戶名和密碼,然後我不能去獲取代碼;但使用centos,git的版本是1.8.3,它提示我輸入用戶名和密碼,然後我得到代碼。我將git版本2.11更改爲centos,它將與alpine.I同樣的東西發現它是git的錯誤 – alphayan