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 ベースの を実行しようとするとssh.exe、空白行が出力されて終了することです。

私が抱いている疑念は、明らかに mingw と、コンテナ内で実行しているという事実に関するものです。

cchttps://github.com/Microsoft/dotnet-framework-docker/issues/61

答え1

これは単なる推測ですが、dotnetフレームワークイメージにはすでにGitHubのSSHキーが含まれていたのではないかと思います...とはいえ、調べてみるとgithub.com/git-for-windows/git/issues/1403 より根本的/理想的な解決策として。

関連情報