我正在将一些 docker 图像通过互联网推送到我们的主机。看到 Docker 动态压缩图像,并且 CLI 报告压缩前的总图像大小,我使用了 nethogs
观看上传进度 - 由于压缩,它似乎停滞不前,因为上传速度远低于我预期的速度。
我希望多次上传这个图像 - 有没有办法可以缓存 Docker 的压缩图像,然后再推送它?
最佳答案
根据文档,数据在自动上传之前被压缩。
Progress bars are shown during docker push, which show the uncompressed size. The actual amount of data that’s pushed will be compressed before sending, so the uploaded size will not be reflected by the progress bar.
https://docs.docker.com/engine/reference/commandline/push/
关于docker - 有没有办法在推送之前预压缩 docker 图像?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38838029/