Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications.
Less portable, minimal overhead
Most portable,
lots of overhead
Manual
configuration
Traditional VMs
CM tools
Docker
Docker in practice
Containers
How you run
your application
Images
How you store
your application
Dockerfiles
# Set the base image to Ubuntu
FROM ubuntu
# Update the repository sources list
RUN apt-get update
# Install MongoDB package (.deb)
RUN apt-get install -y mongodb-10gen
# Create the default data directory
RUN mkdir -p /data/db
# Expose the default port
EXPOSE 27017
# Default command to start the database
CMD ["usr/bin/mongod", "--port 27017"]