4 ms·
If you're keeping that many docker images around you have other problems to worry about.
by alex_young 5y ago
If you're keeping that many docker images around you have other problems to worry about.
- tedunangst 5y agoYou can have two colliding short hashes in a row.
- mlyle 5y agoYou can have two colliding full length hashes in a row, too. It's just not very likely. 7-8 character shorthashes are perfectly reasonable for tracking a few thousand objects without much chance of collision. There's a tradeoff between the uniqueness guarantee and the friendliness if humans ever need to see the identifier. Of course, sequential identifiers can be even shorter and friendlier, but they are more troublesome in several ways than hash-derived ones.
- deleted 5y ago[deleted]
- afrodc_ 5y agoIt's usually a shorthand reference to figure out what commit your image is built from. Unless you're implying something else
- mnahkies 5y agoI generally use the build number from ci for the tag, and add the git commit and repo URL as a label/annotation (following https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys https://github.com/opencontainers/image-spec/blob/main/annot...)