News for hackers. Stuff that matters.
Re:What’s New in Docker 1.13? by chrisfosterelli on Thursday January 19, 2017 @10:57PM (#13441639)
I'm very excited about the clean-up commands!

Docker desperately needs this, it's so frustrating constantly having full disk space due to untagged containers and unbounded volumes.

Re:What’s New in Docker 1.13? by ryan_lane on Friday January 20, 2017 @02:08PM (#13446159)
The downside is the prune command is a giant hammer. In a lot of cases you don't want to clean everything, just things you know you won't be using. For instance, in a CI environment there's going to be some images that will always be there, but if you run a prune in-between jobs you've now made it necessary to re-pull all images.
Re:What’s New in Docker 1.13? by geerlingguy on Thursday January 19, 2017 @11:26PM (#13441727)
If you're on Mac, it's still a bit of a problem; hopefully the SSD-gobbling Docker.qcow2 file problem[1] is fixed soon!

[1] https://github.com/docker/for-mac/issues/371

Re:What’s New in Docker 1.13? by selvakn on Thursday January 19, 2017 @11:45PM (#13441783)
Looks like it is fixed in https://twitter.com/kelseyhightower/status/82223709949555097.... Im looking for official changelog for confirmation though.
Re:What’s New in Docker 1.13? by iends on Friday January 20, 2017 @12:15AM (#13441854)
Judging by the github issue list there are a lot more issues with Docker.qcow2 now than before. Mostly related to Docker.qcow2 preventing docker from starting.

Looks like a bad release. Hopefully 1.13.1 is soon.

Re:What’s New in Docker 1.13? by djs55 on Friday January 20, 2017 @05:21AM (#13442747)
(I work on Docker for Mac.)

Apologies for the inconvenience this has caused.

There was a race condition in a previous release which could allow multiple hypervisor instances to open the Docker.qcow2 simultaneously. Unfortunately this can corrupt the file by allocating the same physical block (cluster) twice, resulting in bad things happening. When this file-locking bug was fixed we also added an integrity check which checks the structure of the Docker.qcow2 on every application launch. For safety the app refuses to start if corruption is detected.

I believe that in these cases, the corruption happened in the past and is now being detected since the upgrade. Unfortunately if the app refuses to start it makes it difficult to reach the "Reset to Factory defaults" menu option. The workaround described here https://github.com/docker/for-mac/issues/1159#issuecomment-2... is to remove the qcow2 and restart the app. Unfortunately containers and images will need to be rebuilt.

For what it's worth after the integrity check and the locking fix went in, I've not seen any recurrence of this error. Please open an issue if you see any other problems!

Re:What’s New in Docker 1.13? by justincormack on Friday January 20, 2017 @04:55AM (#13442668)
This is now fixed on the stable release, but space is only released when you restart docker at present. Online freeing is being worked on too.
Re:What’s New in Docker 1.13? by dijit on Friday January 20, 2017 @04:01AM (#13442502)
I have a little one-liner I keep around on all my docker hosts that does this for me. I don't think you needed to wait for them to add anything.

    #!/usr/bin/env bash
    docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
Re:What’s New in Docker 1.13? by alexellisuk on Friday January 20, 2017 @04:03AM (#13442506)
Yes and isn't it fun to type that in over and over - especially on a new machine where you don't have your .dotfiles yet :-/ The new command is going to really save hassle here.
Re:What’s New in Docker 1.13? by nickjj on Friday January 20, 2017 @07:52AM (#13443413)
The new command is definitely a nice addition, but I can't say that I've manually ran the other clean up commands in a long time. They were sitting in a daily cron for the last 9 months or so.