我有一个我正在使用gcloud的Express Node应用程序。当我在本地运行时使用:
gcloud preview app run .
我得到了这个:
WARNING: Image Id 2d30351c6647 cannot be removed: 409 Client Error:
Conflict ("Conflict, cannot delete 404cc995b0da because the running
container 837a44cae1ee is using it, stop it and use -f to force").
应用程序大部分时间运行缓慢。当我保存时,它会进行慢速健康检查,如下所示:
INFO: [default] Detected file changes:
/path/to/server.js
INFO: Building image <appID>.default.1...
INFO: Waiting for instances to restart
INFO: Health checks starting for instance 0.
INFO: default: "GET /_ah/health?IsLastSuccessful=no HTTP/1.1" 503 -
WARNING: All instances may not have restarted
INFO: default: "GET /_ah/health?IsLastSuccessful=no HTTP/1.1" 503 -
然后我收到409图像警告。它大大减速,偶尔会崩溃。非常感谢任何帮助。
答案 0 :(得分:2)
尝试在Docker上杀死并删除所有正在运行的容器,然后再次运行它,这样就可以了。
docker ps -a
(显示所有容器,运行与否)
docker rm $(docker ps -a -q)
(删除所有现有容器)