0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

docker build --ssh defaultでエラー

Posted at

Githubにあるプライベートリポジトリを含むDockerイメージを構築する際、エラーになってしまいました。

2.582   Warning: Permanently added the ECDSA host key for IP address '20.27.177.113' to the list of known hosts.
3.103   git@github.com: Permission denied (publickey).
3.103   fatal: Could not read from remote repository.

20.27.177.113はgithubのIPアドレスです。)

私の場合、以前PCの初期化を行なっていたため、再度ssh-addしてあげることで事象は解決しました。

ssh-add ~/.ssh/[githubの認証に使用しているSSHプライベートキー]

PC初期化の後処理は大変ですね。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?