![由于磁盘限制,Cloud Foundry 应用程序推送失败](https://linux22.com/image/172502/%E7%94%B1%E4%BA%8E%E7%A3%81%E7%9B%98%E9%99%90%E5%88%B6%EF%BC%8CCloud%20Foundry%20%E5%BA%94%E7%94%A8%E7%A8%8B%E5%BA%8F%E6%8E%A8%E9%80%81%E5%A4%B1%E8%B4%A5.png)
命令:
cf push cf-mongo-client --docker-image mongoclient/mongoclient
错误:
ll_id"=>"2470c00a-181c-4965-bb2d-0ba3ad5c34aa", "reason"=>"CRASHED", "exit_description"=>"failed to create container: running image plugin create: pulling the image: streaming blob `sha256:02200c4c842ea1c4b5c37a93b99ef2aff243d4ae116863aa562b4999f22df299`: writing blob to tempfile: uncompressed layer size exceeds quota\n: exit status 1", "crash_count"=>2, "crash_timestamp"=>1588547728558173147, "version"=>"55e0c7df-114d-4f4f-8252-d3c251c8f262"}
2020-05-04T00:15:28.60+0100 [CELL/0] OUT Cell 2470c00a-181c-4965-bb2d-0ba3ad5c34aa creating container for instance 37fbf199-092f-4a22-6b6f-5a0d
2020-05-04T00:15:50.29+0100 [CELL/0] ERR Cell 2470c00a-181c-4965-bb2d-0ba3ad5c34aa failed to create container for instance 37fbf199-092f-4a22-6b6f-5a0d: running image plugin create: making image: creating image: applying disk limits: disk limit is smaller than volume size
2020-05-04T00:15:50.29+0100 [CELL/0] ERR : exit status 1
答案1
很好的提示,谢谢吉尔斯。
原因:Cloud Foundry 默认将容器磁盘大小限制为 1Gb。可以使用以下命令增加它。
cf push cf-mongo-client --docker-image mongoclient/mongoclient -k 2G