Windows 컨테이너에서 SSH 기반 GIT URI를 복제할 수 없습니다.

Windows 컨테이너에서 SSH 기반 GIT URI를 복제할 수 없습니다.

무슨 일이 일어났는지 확실하지 않지만 지난주까지 컨테이너 기반 Windows 컨테이너에서 SSH 기반 URI를 통해 git 리포지토리를 복제할 수 있었습니다 dotnet-framework-docker. 이제 갑자기 예고도 없이 복제로 이동하면(공개 저장소라도) 다음 오류가 발생합니다.

C:\>git clone [email protected]:atrauzzi/praxis.git
git clone [email protected]:atrauzzi/praxis.git
Cloning into 'praxis'...
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Dockerfile다음은 문제를 재현하는 데 사용할 수 있는 간단한 방법입니다 .

FROM microsoft/dotnet-framework
SHELL ["powershell"]

# Install Git
RUN New-Item -ItemType Directory -Force -Path 'c:/git';
RUN Invoke-WebRequest "https://github.com/git-for-windows/git/releases/download/v2.15.1.windows.1/Git-2.15.1-64-bit.exe" -OutFile "/git-installer.exe" -UseBasicParsing;
RUN Start-Process -FilePath C:/git-installer.exe -ArgumentList '/VERYSILENT', '/NORESTART', '/NOCANCEL', '/SP-', '/DIR="c:/git"' -PassThru | Wait-Process;
RUN rm /git-installer.exe;

현재로서는 무엇이 이 문제를 일으킬 수 있는지 잘 모르겠습니다. 유일한 의심스러운 점은 mingw based 를 실행하려고 하면 ssh.exe빈 줄이 인쇄된 다음 종료된다는 것입니다.

내가 가지고 있는 몇 가지 의심은 분명히 mingw와 내가 컨테이너에서 물건을 실행하고 있다는 사실에 관한 것입니다.

참조https://github.com/Microsoft/dotnet-framework-docker/issues/61

답변1

이것은 단지 추측일 뿐입니다. 하지만 dotnet 프레임워크 이미지에 이미 GitHub용 SSH 키가 있었던 것 같습니다.https://github.com/git-for-windows/git/issues/1403루트/이상적인 수정으로.

관련 정보