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 등록



htps : // 기주 b. 코 m/세친 gs/케 ys
에서 add new하여 sshkey 등록


Build 재실행



성공 확인

좋은 웹페이지 즐겨찾기