docker/docker — pull request #8165 by duglin (2014-09-22 14:52:46+00:00)
Title: Don't bother with the rename during an image delete - Issue #7309

During an image delete the old image's directory is being renamed before it is deleted. Not 100% sure but I suspect this was done to make it unavailable to any process that's trying to access it. However, I would think that removing it from the idIndex and driver should be sufficient. Plus, it is immediately followed by the os.RemoveAll(). The problem with the os.Rename(), as noted in Issue 7309, is that if you're out of disk space the rename will fail, leaving the user in a state that they can't seem to recover from w/o hacking away at the server FS. With this fix I was able to delete the image even if my FS is full.

#7309

Signed-off-by: Doug Davis