Docker 图片阻止 VM 部署
Docker image prevents VM deployment
我中断了 mvn gcloud:deploy
命令,并且无法重新部署,因为此错误消息不断出现。我已经从 GCS 中删除了所有自生成的存储桶,但仍然没有不同的结果。
[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
因为我怀疑这个 "lock" 在 Google 的构建器实例的源文件中,它后来删除了,所以我做了它抱怨的事情,将我的运行时从 java 更改为在 app.yaml 文件上自定义并重新部署。
我无法再使用 Java 运行时部署我的 VM,我仍然收到相同的错误消息。我如何执行干净的构建以摆脱这个幻影 docker 图像?
要清理maven构建的目标目录,你可以这样做:
mvn clean gcloud:deploy
我中断了 mvn gcloud:deploy
命令,并且无法重新部署,因为此错误消息不断出现。我已经从 GCS 中删除了所有自生成的存储桶,但仍然没有不同的结果。
[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
因为我怀疑这个 "lock" 在 Google 的构建器实例的源文件中,它后来删除了,所以我做了它抱怨的事情,将我的运行时从 java 更改为在 app.yaml 文件上自定义并重新部署。
我无法再使用 Java 运行时部署我的 VM,我仍然收到相同的错误消息。我如何执行干净的构建以摆脱这个幻影 docker 图像?
要清理maven构建的目标目录,你可以这样做:
mvn clean gcloud:deploy