Dockerhubで「fatal: Could not read from remote repository」が出る場合はgit repository(github)でssh-keyを登録する
事象
dockerhubでbuildを行ったら以下のエラー発生。
Building in Docker Cloud's infrastructure...
Cloning into '.'...
Warning: Permanently added the RSA host key for IP address '192.30.253.112' to the list of known hosts.
Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
please ensure the correct public key is added to the list of trusted keys for this repository (128)
対処
dockerhubのsshkeyを取得
git repository(github)でssh-keyを登録する
下記のdeploy keyをコピー
githubへsshkeyを登録
https://github.com/settings/keys
からadd newしてsshkeyを登録
Build再実行
Author And Source
この問題について(Dockerhubで「fatal: Could not read from remote repository」が出る場合はgit repository(github)でssh-keyを登録する), 我々は、より多くの情報をここで見つけました https://qiita.com/toru2220/items/49a7972e53777427ae30著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .