Few thousands modules tested. (4:05AM) WTF!? Where’s my data? (4:30AM) F**k… that dude’s tests wiped my local redis instance. (4:31AM) I need containment.
methods for transporting/storing Do I worry about how goods interact (e.g. coffee beans next to spices) Can I transport quickly and smoothly (e.g. from boat to train to truck) …in between, can be loaded and unloaded, stacked, transported efficiently over long distances, and transferred from one mode of transport to another A standard container that is loaded with virtually any goods, and stays sealed until it reaches final delivery.
DB Queue Analytics DB Development VM QA server Public Cloud Contributor’s laptop Multiplicity of Stacks Multiplicity of hardware environments Production Cluster Customer Data Center Do services and apps interact appropriately? Can I migrate smoothly and quickly …that can be manipulated using standard operations and run consistently on virtually any hardware platform An engine that enables any payload to be encapsulated as a lightweight, portable, self- sufficient container…
! ! ! Bins/ Libs ! ! ! App A’ ! ! ! ! ! ! ! ! ! Guest OS ! ! ! ! ! ! ! Bins/ Libs ! ! ! VMs Every app, every copy of an app, and every slight modification of the app requires a new virtual server App A ! ! ! ! ! ! ! ! ! Guest OS ! ! ! ! ! ! ! ! ! ! Bins/ Libs ! ! ! ! ! ! ! Guest OS ! ! ! ! ! ! ! ! ! ! Guest OS ! ! ! ! ! ! VMs ! ! ! ! Bins/ Libs ! ! ! App A Original App (No OS to take up space, resources, or require restart) App Δ ! ! ! ! Bins/ Modified App ! Copy on write capabilities allow us to only save the diffs Between container A and container A’ Copy of App No OS. Can Share bins/ libs App A Containers
a unix socket by default. • unix:///var/run/docker.sock • Able to listen on TCP socket (supports TLS/SSL certificates since yesterday v0.10) • 127.0.0.1:4243 OpenStack implementation
generates a new image. • Features caching. • If your app have one, it is “containerizable/dockerized”. • http://docs.docker.io/en/latest/reference/builder/
A Docker Engine ! ! Docker Container Image Registry Build Docker Host 2 OS (Linux) Container A Container B Container C Container A Push Search Pull Run Host 1 OS (Linux)
production” rules apply. • Particular to Docker: • Containers are cheap. F**ked up? Spawn a new one. • You have a standard container! Leverage this. • Keep your integration loose. Move as fast as Docker.