当我运行此命令时:
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
答案 0 :(得分:1)
这是“一般错误消息”。 我的解决方案是:
docker system prune
这样可以清理docker镜像/容器和注册表的构建docker镜像。