Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Containers @ Hyperspeed

Containers @ Hyperspeed

(talk given at container.camp london -- 2015-09-11)

Containers are awesome! But storing and moving them is painful! It's slow! Containers are huge! There's little deduplication! No cryptographic versioning! Images are lost! Worst, we must depend on other services -- or having fast connection to them...

No more! starship puts your containers on hyperspeed! Instead of old-school HTTP, starship uses shiny IPFS -- a new protocol, Git meets Bittorrent. With IPFS, starship (a) deduplicates all data between containers, (b) uses p2p download from fastest hosts, and (c) can limit connections to private cloud(s) or local networks.

Juan Batiz-Benet

September 11, 2015
Tweet

More Decks by Juan Batiz-Benet

Other Decks in Technology

Transcript

  1. IP UDP TCP SCTP Ethernet CSMA WIFI TP Coax Satellite

    Fiber Radio PPP HTTP SMTP FTP NFS Skype Pigeons Chat
  2. routing network exchange merkledag naming applications IPNS DNS Namecoin Bitswap

    HTTP BitTorrent Kad DHT Chord mDNS Gossip Delegated FTP TOR QUIC TOR TCP uTP WebRTC WebSockets Git Bitcoin VLC Etherpad Chat I2P I2P CJDNS UDT
  3. 1. as a docker/registry storage driver 2. as a docker/docker

    graph driver 3. standalone (load/save) dkr-shp
  4. jbenet @ earth : ~ > dkr-shp shp - containers

    at hyperspeed shp (starship) uses IPFS, a p2p merkle-dag transport, to move around container images. This is dkr-shp, the docker-specific tool for shp. COMMANDS dkr-shp init initialize a shp station dkr-shp start start the shp station dkr-shp push <docker-id> publish given docker image on this host dkr-shp pull <ipfs-hash> pull down docker image, add it to docker
  5. jbenet @ earth : ~ > dkr-shp init initialized shp

    station (registry) at /var/lib/shp
  6. jbenet @ earth : ~ > dkr-shp init initialized shp

    station (registry) at /var/lib/shp jbenet @ earth : ~ > dkr-shp start started shp station (registry) 951f267861f99a79
  7. jbenet @ earth : ~ > dkr-shp init initialized shp

    station (registry) at /var/lib/shp jbenet @ earth : ~ > dkr-shp start started shp station (registry) 951f267861f99a79 jbenet @ earth : ~ > docker images | grep ipfs jbenet/go-ipfs latest c1d9bf8d8844 4 hours ago 29.76 MB thelinuxkid/ipfs-reg latest 8bd6f334dca4 2 days ago 254.2 MB
  8. jbenet @ earth : ~ > dkr-shp init initialized shp

    station (registry) at /var/lib/shp jbenet @ earth : ~ > dkr-shp start started shp station (registry) 951f267861f99a79 jbenet @ earth : ~ > docker images | grep ipfs jbenet/go-ipfs latest c1d9bf8d8844 4 hours ago 29.76 MB thelinuxkid/ipfs-reg latest 8bd6f334dca4 2 days ago 254.2 MB jbenet @ earth : ~ > dkr-shp push c1d9bf8d8844 published as /ipfs/QmNsF3nR6kTz3PnKWH1uZP97ESYsLP9uJVqV9EpNfzRKSk/c1d9bf8d8844
  9. jbenet @ earth : ~ > dkr-shp init initialized shp

    station (registry) at /var/lib/shp jbenet @ earth : ~ > dkr-shp start started shp station (registry) 951f267861f99a79 jbenet @ earth : ~ > docker images | grep ipfs jbenet/go-ipfs latest c1d9bf8d8844 4 hours ago 29.76 MB thelinuxkid/ipfs-reg latest 8bd6f334dca4 2 days ago 254.2 MB jbenet @ earth : ~ > dkr-shp push c1d9bf8d8844 published as /ipfs/QmNsF3nR6kTz3PnKWH1uZP97ESYsLP9uJVqV9EpNfzRKSk/c1d9bf8d8844 jbenet @ earth : ~ > dkr-shp push jbenet/go-ipfs published as /ipfs/QmNsF3nR6kTz3PnKWH1uZP97ESYsLP9uJVqV9EpNfzRKSk/jbenet/go-ipfs
  10. jbenet @ mars : ~ > dkr-shp init initialized shp

    station (registry) at /var/lib/shp
  11. jbenet @ mars : ~ > dkr-shp init initialized shp

    station (registry) at /var/lib/shp jbenet @ mars : ~ > dkr-shp start started shp station (registry) eac13c827004cf7a
  12. jbenet @ mars : ~ > dkr-shp init initialized shp

    station (registry) at /var/lib/shp jbenet @ mars : ~ > dkr-shp start started shp station (registry) eac13c827004cf7a jbenet @ mars : ~ > dkr-shp pull c1d9bf8d8844 pulled /ipfs/QmNsF3nR6kTz3PnKWH1uZP97ESYsLP9uJVqV9EpNfzRKSk/c1d9bf8d8844
  13. jbenet @ mars : ~ > dkr-shp init initialized shp

    station (registry) at /var/lib/shp jbenet @ mars : ~ > dkr-shp start started shp station (registry) eac13c827004cf7a jbenet @ mars : ~ > dkr-shp pull c1d9bf8d8844 pulled /ipfs/QmNsF3nR6kTz3PnKWH1uZP97ESYsLP9uJVqV9EpNfzRKSk/c1d9bf8d8844 jbenet @ mars : ~ > dkr-shp peers /ip4/104.236.32.22/tcp/4006/ipfs/QmNxzC53nTdTJaFivaev5mu2zFJmzcAAfQXJqTLarB8omm /ip4/162.243.139.61/tcp/4006/ipfs/QmNaVrdSKnZ8qpUhhGJeJuo7AjMHJBDE2xSWMvBau34g8P /ip4/104.236.176.52/tcp/4001/ipfs/QmSoLnSGccFuZQJzRadHn95W2CrSFmZuTdDWP8HXaHca9z /ip4/128.199.219.111/tcp/4001/ipfs/QmSoLSafTMBsPKadTEgaXctDQVcqN88CNLHXMkTNwMKPnu /ip4/178.62.158.247/tcp/4001/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd /ip4/178.62.61.185/tcp/4001/ipfs/QmSoLMeWqB7YGVLJN3pNLQpmmEk35v6wYtsMGLzSr5QBU3
  14. jbenet @ mars : ~ > dkr-shp addrs /ip4/127.0.0.1/tcp/4001/ipfs/QmUm6cjdSw7GFUVCxDoos9S5ikAMcjtug7J5syw74AovLH /ip4/172.17.0.25/tcp/4001/ipfs/QmUm6cjdSw7GFUVCxDoos9S5ikAMcjtug7J5syw74AovLH

    /ip6/::1/tcp/4001/ipfs/QmUm6cjdSw7GFUVCxDoos9S5ikAMcjtug7J5syw74AovLH jbenet @ mars : ~ > dkr-shp connect $addr jbenet @ mars : ~ > # setup in a completely private network jbenet @ mars : ~ > dkr-shp init --net QmPzugFx3ysr8BujxZ3dkBiRYnuS2D63ndkAdq3W7J initialized shp station (registry) at /var/lib/shp