3 ms·
> The hardest part of that would be verifying image authenticity. That's exactly what Bittorrent does with its hash tree. You'd get the root hash (extremely t
by sneak 6y ago
> The hardest part of that would be verifying image authenticity.
That's exactly what Bittorrent does with its hash tree. You'd get the root hash (extremely tiny) from Docker Hub, and the rest of the metadata, as well as the data blocks, from the swarm. The authenticity is all handled by the TLS that serves you the root infohash from Docker Hub. It's a Merkle tree: the root hash is for the metadata, which is a list of hashes of the blocks.
- im3w1l 6y agoIf this reads like greek, let me dumb it down. You get the hash of the final result from the trusted server and hash is checked. Because of this you will never get an invalid image. There are also some clever tricks to make sure no one can force you to start over from scratch by sending wrong data. But that's more of a detail.