mafintosh / torrent-docker

MAD SCIENCE realtime boot of remote docker images using bittorrent
MIT License
314 stars 25 forks source link

A torrent for each layer #1

Open mcollina opened 9 years ago

mcollina commented 9 years ago

In my mad idea of running a torrent-docker-registry, I think it make sense to have a single torrent for each layer, so we can effectively deduplicate the layers and reuse caching.

However, I think this means we are effectively reimplementing all the pull mechanism in Docker. Is this weird?

liangmingyuanneo commented 8 years ago

@mcollina I think you are write. According to my understanding, this project has packed the whole images and propagate to an remote client no matter whether the remote node has some layers already. An docker image consists of several layers and you do not need to download the layer that has located in local disk. So we should make a single torrent for each layer for the purpose of deduplicating the same layers and minimizing the cost of network transmission.