docker-registry icon indicating copy to clipboard operation
docker-registry copied to clipboard

Registry abandons files under /tmp, filling up the container

Open garo opened this issue 10 years ago • 2 comments

In some cases the registry creates files under /tmp and abandons these files there, filling up the container. This seems to be happening if there's too many concurrent machines trying to pull layers from the registry, thus possibly relating to bug https://github.com/docker/docker-registry/issues/540

The following error can be found from the container logs:

Exception KeyError: KeyError(139754075909168,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored

We're using the official 0.9.0 container with S3 backend. No redis caches

garo avatar Nov 12 '14 07:11 garo

Thanks for the report.

I'll have a look - but see my comment #540

dmp42 avatar Nov 12 '14 17:11 dmp42

I just had this issue too. tmp dir was full of GetV2ImageBlobXXXXXX files that appeared to have been orphaned.

I've had to add a script to periodically clean-up... obviously not ideal.

CoreOS 633.1.0, Official 0.9.0 registry image, S3 backend, No Redis cache.

chrisfarms avatar Apr 15 '15 16:04 chrisfarms