错误:无法执行目标com.google.cloud.tools:jib-maven-plugin:0.9.11:dockerBuild dockerizing JHipster-Registry

时间:2019-05-16 07:32:08

标签: java jhipster jhipster-registry

当我运行此命令时:

mvn -e package -Pprod verify jib:dockerBuild

jhipster-registry标准项目中,要将该应用程序进行docker化,我会收到此错误:

[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.11:dockerBuild (default-cli) on project jhipster-registry: Invalid image reference: JHipster Registry:5.0.0 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.google.cloud.tools:jib-maven-plugin:0.9.11:dockerBuild (default-cli) on project jhipster-registry: Invalid image reference: JHipster Registry:5.0.0

Help1中建议的链接是:

https://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

1 个答案:

答案 0 :(得分:1)

这是“一般错误消息”。 我的解决方案是:

docker system prune

这样可以清理docker镜像/容器和注册表的构建docker镜像。