我正在尝试在Windows计算机中构建我的spring boot项目的docker映像。
1)gradlew jibDockerBuild
使用第一个命令docker镜像生成并成功运行。
2)gradlew jib --image=demo:0.0.1-SNAPSHOT
使用第二个命令时,我尝试生成docker映像时出现错误
> Task :jib FAILED
FAILURE: Build failed with an exception.
* 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 'demo:0.0.1-SNAP
SHOT' are set up correctly. See https://github.com/GoogleContainerTools/jib/blob
/master/docs/faq.md#what-should-i-do-when-the-registry-responds-with-unauthorize
d for help
我已经通过docker login
登录了docker hub。
我是否需要在build.gradle中配置Docker Hub凭据?