Can I clean /var/lib/docker/tmp?

2019-02-12 06:39发布

My server is CoreOS. There are so many files in /var/lib/docker/tmp, their name's like "GetV2ImageBlob998303926".

The size of all GetV2ImageBlobxxxxxxxx files is 640MB.

Can I remove all files in /var/lib/docker/tmp?

标签: docker coreos
1条回答
趁早两清
2楼-- · 2019-02-12 07:06

This is reported in issues/14506, and addressed in PR 14389, now PR 15414.

Ensure images downloaded by pullTagV2 are always cleaned up

Previously, if only some of the downloads succeed, we would not close and delete the file handles. This does change the behavior of the registration to block on all downloads completing (whereas previously it would exit early after the first failure), which is necessary to ensure cleanup is only performed after the download portion has completed.

That will be fixed in Docker 1.8 or 1.9

查看更多
登录 后发表回答