使用BitTorrent远程实时启动docker images

jopen 9年前

torrent-docker实现使用BitTorrent远程实时启动docker images。

Docker images 很大,一个简单的hello world node 应用就轻松占用 > 600MB 的空间。下载/上传这些images将耗费很长的时间。

为了修复这个问题torrent-docker实现了一个union文件系统,能够使用bittorrent共享实时安装一个docker image和启动一个容器。

用法

Seed a docker image

First create a docker image

FROM ubuntu:14.04  RUN apt-get update && apt-get install -qy curl vim

Then build it

docker build -t test-image

Now all we need to do is create a torrent from the docker image

torrent-docker create test-image

This creates a file test-image.torrent and a data folder test-image/. Share this torrent using your favorite torrent client or do

torrent-docker seed test-image.torrent # will print a activity log

Realtime boot the docker image

Now copy test-image.torrent to another machine. To boot the image do

torrent-docker boot test-image.torrent my-container

项目主页:http://www.open-open.com/lib/view/home/1416800232945