If you're keeping that many docker images around you have other problems to worry about.
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.