15

I am using docker toolbox in OS X. When I run docker-compose pull and the network cuts out, the download does not resume after I fix the issue. Is there a way to purge or invalidate partial downloads for docker images?

octosquidopus
  • 3,517
  • 8
  • 35
  • 53
Derek Blair
  • 231
  • 3
  • 7

1 Answers1

5

As noted in the comments, incomplete images would not be present anyway.

Since PR 18353 and docs-v1.11.2-2016-06-10, the next pull would reload missing/incommplete layers and build the complete image.

See more here.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I've got the same problem. `docker images -f "dangling=true" -q` doesn't print any images, so I assume there are no dangling images. – Jason O'Neil Jul 05 '16 at 05:32
  • Yes, there shouldn't be any indeed. – VonC Jul 05 '16 at 05:34
  • Not a proper answer as incomplete downloads do not become images – joshfindit Jan 17 '20 at 15:31
  • 1
    @joshfindit Thank you for the feedback, and good point: I have rewritten the answer accordingly. – VonC Jan 17 '20 at 16:13
  • @VonC Excellent. Would you also mind putting in the documentation or command for purging or invalidating partial downloads (if it exists)? In my case, for example, I did a `run` which prompted a download of 16 (!) layers. 12 completed and the drive ran out of space downloading the other 4. Afterwards the space was not cleared and there's no intuitive (or that I could find: documented) way to clear that space when I have no intention of using that container in future. – joshfindit Jan 17 '20 at 16:24
  • @joshfindit Sure. Done. – VonC Jan 17 '20 at 16:38