Docker?
• Open
source
app
container
management
tool
• Both
a
standard
and
a
reference
implementa9on
• Created
by
DotCloud
• WriYen
in
Go
(golang)
• Uses
advanced
Linux
kernel
features:
– LXC,
AUFS,
cgroups,
namespaces
What’s
the
big
idea?
• Create
a
standard
for
“container-‐izing”
apps
• Make
apps
easy
to
package,
deploy
and
run
• Regardless
of
language,
run9me,
or
backend
• Any
OS,
as
long
as
it’s
Linux
(and
Ubuntu*)
*As
of
August
2013.
BusyBox
also
available.
Other
distros
should
be
supported
soon.
# Boot the Vagrant host, ssh into it, # become root, install curl vim Vagrantfile # add: config.vm.forward_port 5000, 5000 vagrant up vagrant ssh sudo su - apt-get install curl
# Launch an interactive bash prompt docker run -i -t ubuntu /bin/bash # If you see an error, ignore and retry… docker run -i -t ubuntu /bin/bash hostname # Try writing to container file system echo foo > /tmp/bar ls –la /tmp exit # Verify /tmp/bar doesn’t exist in host FS ls –la /tmp