Java Docker映像阻止VM部署

Java Docker映像阻止VM部署,java,maven,google-app-engine,gcloud,google-managed-vm,Java,Maven,Google App Engine,Gcloud,Google Managed Vm,我中断了一个mvn gcloud:deploy命令,无法重新部署,因为不断出现此错误消息。我已经从GCS中删除了所有自生成的bucket,但仍然没有与此不同的结果 [INFO] If this is your first deployment, this may take a while.../ [INFO] [INFO] If this is your first deplo

我中断了一个
mvn gcloud:deploy
命令,无法重新部署,因为不断出现此错误消息。我已经从GCS中删除了所有自生成的bucket,但仍然没有与此不同的结果

[INFO] If this is your first deployment, this may take a while.../
[INFO]                                                            
[INFO] If this is your first deployment, this may take a while...done.
[INFO] 

[INFO] ERROR: (gcloud.preview.app.deploy) There is a Dockerfile in the current directory, 
and the runtime field in /target/appengine-staging/app.yaml is currently set to
[runtime: java]. To use your Dockerfile to build a custom runtime, set the runtime field 
in /target/appengine-staging/app.yaml to [runtime: custom]. To continue using the [java]
runtime, please omit the Dockerfile from this directory. 

[ERROR] Error: gcloud app command with exit code : 1
由于我怀疑Google的源文件上有一个builder实例的“锁”,后来它删除了它,所以我做了它抱怨的事情,在app.yaml文件上将我的运行时从java更改为custom,并重新部署了它


我不能再使用Java运行时部署我的VM,我仍然会收到相同的错误消息。如何执行清理构建以清除此幻影docker映像?

要清理maven构建的目标目录,可以执行以下操作:


mvn clean gcloud:deploy

如果删除当前目录中的Dockerfile会发生什么?它可以工作。Eclipse在没有刷新的情况下不向我显示它。睡眠剥夺导致了问题。我没有刷新Eclipse上的appengine暂存文件夹以显示Dockerfile,而是使用gcloud命令行util获取信息。调试了deploy_命令_util.py,发现Dockerfile的路径就在我的鼻子下:/target/appengine staging。由于不是开源的,我无法提供更直接的错误消息。有一个选项可以清除任何以前的docker映像,但我相信mvn clean gcloud:deploy比阻止使用自定义docker映像要好。