remove sha256 for docker version 1.10#102
Conversation
|
You need to change the format used for Maybe it would be better to generate the exclude file in way so that it optionally matches the prefix? |
|
Good catch, we shouldn't be trying to remove images used by existing containers I think I missed this because you can't force remove images if they're in use anyways. Pertaining to modifying the exclude files to match the prefix how would that work? Depending on the docker version we want to ignore Your thoughts? |
|
something like this should work on both versions, also needs -E to the grep further down But I'm not really sure what I prefer. One issue I see with stripping the sha256 prefix is that there probably more places where a format like this will be produce and it could be hard to know we're not missing a spot. Anyway I think this is up to the maintainers to decide I'm just another user seeing the same bug :) |
|
While I was using it, i thought of the same solution as @keis |
Initially thought #93 would fix this issue but after some testing realized it does not.
When running
docker images -q --no-trunc | sed 's/[^:]\+://' | sort | uniqthe expected output is only the image ids but the actual result isThis fix addresses the change in output when running
docker images -q --no-truncin docker versions > 1.10. This change should not break docker-gc when running on older docker versions