使用BitTorrent遠程實時啟動docker images

jopen 10年前發布 | 16K 次閱讀 torrent-docker

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.baiduhome.net/lib/view/home/1416800232945

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!