Open khuongln-1346 opened 1 year ago
When you got errors:
Containerizing application to Docker daemon as kotlin-web-spring-boot-3:0.0.1-SNAPSHOT...
Base image 'eclipse-temurin:17-jre-alpine' does not use a specific image digest - build may not be reproducible
The base image requires auth. Trying again for eclipse-temurin:17-jre-alpine...
The credential helper (docker-credential-desktop) has nothing for server URL: registry-1.docker.io
Got output:
credentials not found in native keychain
The credential helper (docker-credential-desktop) has nothing for server URL: registry.hub.docker.com
Got output:
credentials not found in native keychain
Using credentials from Docker config (C:\Users\lam.ngoc.khuong\.docker\config.json) for eclipse-temurin:17-jre-alpine
Executing tasks:
[============ ] 40.0% complete
> building image to Docker daemon
> Task :jibDockerBuild FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':jibDockerBuild'.
> com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: Build to Docker daemon failed, perhaps you should make sure your credentials for 'registry-1.docker.io/library/eclipse-temurin' 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
Run the command:
docker login registry-1.docker.io
Jib: https://github.com/GoogleContainerTools/jib