What went wrong:
Execution failed for task ':jib'.
> com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: Build image failed, perhaps you should make sure your credentials for '<ecr repository 주소>' are set up correctly. See https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#what-should-i-do-when-the-registry-responds-with-unauthorized for help

ecr repository 생성만하고 리눅스 서버에 로그인을 안해놨었다....!

 

 

해결

생성된 repositroy 선택하고 "푸시명령보기" 로 aws ecr repository 로그인 명령어를 복사해서 인증한다.

 

빌드 성공

 

ecr repository에도 이미지 생성이 된걸 확인했다. 

 

 

 


삽질의 흔적들 

1차 시도 실패

.docker 에 있는 config.json 파일 수정해주기

credsStore > credStore

여전히 fail

참고 

https://honsal.blogspot.com/2020/11/docker-docker-for-desktop-on-wsl-2.html

 

[Docker] Docker for Desktop on WSL 2 사용 도중 docker-credential-desktop.exe not installed... 에러가 발생한 경우

IT 관련 자잘한 팁, 약간의 게임 플레이 영상, 그리고 일상이 적힌 블로그입니다.

honsal.blogspot.com

 

2차 시도 실패 

docker desktop 종료하고 다시 시도하기 > 그래도 안됌 ㅠㅠ

참고

https://gre-eny.tistory.com/341

 

[GCP] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:2.8.0:build (default-cli) on project

도커 이미지 빌드 시 오류 SpringBoot 프로젝트로 도커 이미지를 빌드하는 도중 다음과 같은 오류를 만났다. [ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:2.8.0:build (default-cli) on project book: Bu

gre-eny.tistory.com

 

'error' 카테고리의 다른 글

/usr/bin/env: ‘sh\r’: No such file or directory  (0) 2023.02.06

+ Recent posts