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

Docker: Hosting Small Sandboxed Applications

Docker: Hosting Small Sandboxed Applications

An brief overview of hosting small sandboxed applications using Docker and LXC.

Simon Cross

August 27, 2013
Tweet

More Decks by Simon Cross

Other Decks in Technology

Transcript

  1. Have to sacrifice features :( ... or start implementing your

    own filesystem API ... and networking stack.
  2. Hmm. I need a VM per-person at least. The overhead

    to run a 100 lines of code is pretty big. Do I really need a complete OS and virtual machine for this?
  3. Um. I wish I had some tools for managing stuff

    ... How do I talk to my original application?
  4. FIRST STEPS docker pull ubuntu ... wait a bit ...

    docker -i -t ubuntu:12.10 /bin/bash
  5. CUSTOMIZING AN IMAGE C O N T A I N

    E R = $ ( d o c k e r r u n - d u b u n t u : 1 2 . 1 0 a p t - g e t i n s t a l l - y c u r l ) d o c k e r c o m m i t - m " I n s t a l l e d c u r l " $ C O N T A I N E R $ U S E R / b e t t e r b a s e d o c k e r p u s h $ U S E R / b e t t e r b a s e
  6. OUTSIDE Write a process that talks to sandboxed code. Write

    a framework so you can easily add new resources. Communicate with the sandbox using a simple protocol.
  7. OTHER REASONS TO USE CONTAINERS Avoiding dependency hell. Another layer

    of security. Being able to migrate processes between machines (tricky).