SlideShare a Scribd company logo
The Future of Web
Application
Architectures
by
Lucas Carlson
Programmer
18 Years
Author
• Ruby Cookbook
• Programming for PaaS
Entrepreneur
• AppFog PaaS
• Mog Music Streaming Service
Current Role
• Chief Innovation Officer at
CenturyLink
Who Am I?
Structure
1
Who Am I?
2
What’s Next
for Web App
Architectures?
3
How to Future-Proof
Your Applications
with Micro-Services
4
The 6 Insider Tech
Trends in Cloud
Computing
5
Getting the Most
From Docker and
Linux Containers
6
Conclusions
What’s Next for Web App Architectures?
The Future of Web Application Architectures
Web Architectures Are Changing
From
heavy
monolithic
backend
systems
To
lightweight
distributed
share-nothing
systems
What’s Share-Nothing?
 No persistent state is ever stored on
application instances (database,
uploaded files, sessions, etc.)
 Easy to scale because you can add more
to a load balancer without worrying
about discrepancies
The Future of Web Application Architectures
Web Architectures Are Changing
From
hands-on IT-deployed and
managed
To
automated DevOps-deployed through
PaaS or continuous integration and
continuous deployment
The Future of Web Application Architectures
How to Future-Proof Your Applications
with Micro-Services
4 Things to Think About
JSON REST APIs
Asset hosting
Session
management
Async Processing
JSON REST APIs
Micro-Services are small
lightweight services
Communicate with databases to produce
JSON through REST APIs
Minimalist application logic by encapsulating one
thing well (authentication service, blog post
service, credit card service, etc.)
Asset Hosting
Use Object Storage and
CDN to eliminate
dependencies on disk
Allows you to scale
horizontally
This is the foundation of
share-nothing
architecture
Session Management
• By default, many sessions are stores on disk
• This breaks share-nothing architecture
• Especially look out for WordPress/
Drupal/Joomla
Async Processing
Evaluate if you want a
simple queue or to
consider orchestration
which has first-class
queue in it
Keeping micro-services lightweight means
running complicated logic asynchronously
The Future of Web Application Architectures
The 6 Insider Tech Trends
In Cloud Computing
#1 DockerLinux Containers are
Revolutionizing Infrastructure
#2 Orchestration
Declarative DevOps Automation for Cloud Apps
Automation from Source Control to Test to Production
#3 Continuous Integration &
Deployment
#4
Micro
Everything
Micro-Services | Micro-Frameworks | Micro-Languages | Go, Hack, Sinatra, etc.
#5 Mobile
Great APIs are essential for mobile app development
• More logic happening in the
browser than ever using the
same mobile APIs
• AngularJS, Backbone, Ember
#6
Client Side
Javascript
Getting the Most From Docker and Linux
Containers
Cargo Transport Pre-1960
Multiplicity of Goods
Multiplicity of methods for transporting
Do I worry about how goods interact
Can I transport quickly and smoothly
Multiplicity of Goods
Multiplicity of methods
for transporting
Do I worry about how
goods interact
Can I transport quickly
and smoothly
Solution: Intermodal Shipping
Container
Docker is a shipping container
system for code
Static website Web frontendUser DB Queue Analytics DB
Multiplicity of Stacks
Multiplicity of
hardware
environments
Do services and apps
interact appropriately?
Can I migrate smoothly
and quickly
Development VM QA server Public Cloud Contributor’s laptopProduction ClusterCustomer Data Center
Containers vs. VMs
App A
Bins/Li
bs
Guest
OS
App A’
Bins/Li
bs
Guest
OS
App B
Bins/Li
bs
Guest
OS
Hypervisor (Type 2)
Host OS
Server
VM
Containers are isolated, but share OS
and, where appropriate, bins/libraries
App
App
App
App
App
App
App
Bins/Libs Bins/Libs
Docker Engine
Host OS
Server
Container
What are the basics of the Docker
system?
Build
ContainerA
ContainerA
Push
Search
Pull
Run
Docker Engine
Host 1 OS (Linux)
ContainerC
ContainerB
Source Code
Repository
Dockerfile
For A
Docker
Container
Image
Registry
Docker Engine
Host 2 OS 2 (Linux)
What does it looks like ?
Without Docker
$ echo Hello World
Hello World
With Docker
$ docker run ubuntu echo Hello World
Hello World
Interactive Docker
$ docker run -i -t ubuntu bash
root@0bffc7cc54f7:/# ps
PID TTY TIME CMD
1 ? 00:00:00 bash
16 ? 00:00:00 ps
Daemonized Docker
$ docker run -d ubuntu nc -l -p 80
5b06834fe326
$ docker ps
CONTAINER ID IMAGE COMMAND
5b06834fe326 ubuntu:latest "nc -l -p 80"
CREATED STATUS PORTS
22 seconds ago Up 21 seconds
Open Ports Docker
$ docker run -d -p 80 ubuntu nc -l -p 80
c7a533f7901b
$ docker ps
CONTAINER ID IMAGE COMMAND
c7a533f7901b ubuntu:latest "nc -l -p 80"
CREATED STATUS PORTS
2 seconds ago Up 1 seconds 0.0.0.0:49153->80/tcp
Dockerfile
FROM Ubuntu
MAINTAINER Lucas Carlson <lucas@carlson.net>
RUN apt-get update && apt-get install -y nginx
RUN echo "daemon off;" >> /etc/nginx/nginx.conf
ADD . /usr/share/nginx/html
EXPOSE 80
CMD /usr/sbin/nginx -c /etc/nginx/nginx.conf
Build Docker Images
$ docker build -t cardmagic/nginx .
Sending build context to Docker daemon
2.56 kB
Sending build context to Docker daemon
Step 0 : FROM ubuntu
---> 5506de2b643b
Step 1 : MAINTAINER Lucas Carlson
<lucas@carlson.net>
---> Using cache
---> 6d173bfde6c5
Step 2 : RUN apt-get update && apt-get
install -y nginx
---> Using cache
---> 8a9eb983d6f9
Step 3 : ADD . /usr/share/nginx/html
---> Using cache
---> 4b2ebb367b5f
Step 4 : EXPOSE 80
---> Using cache
---> ce5d15c82edf
Step 5 : CMD /usr/bin/nginx
---> Using cache
---> 3b7a04a72de7
Successfully built 3b7a04a72de7
Run your Container
$ docker run -d -p 80 cardmagic/nginx
c7a533f7901b
$ docker ps
CONTAINER ID IMAGE COMMAND
f2cd2860cf84 cardmagic/nginx:latest “/usr/sbin/nginx"
CREATED STATUS PORTS
3 seconds ago Up 2 seconds 0.0.0.0:49158->80/tcp
$ curl http://$(boot2docker ip):49158/
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
$ docker pull
cardmagic/nginx
Share your Container
$ docker push
cardmagic/nginx
Docker’s Do and Don’ts
Do
 Containerize your application
code
 Use containers to create
consistency
Don’ts
 Run databases inside containers
yet
 Run multi-tenant containers
Conclusion
Conclusion
Automation is dominating the future landscape of
web app architectures
1
Docker and Linux Containers are the new way to
package and distribute your applications
3
Micro-services are the future:
• Lightweight distributed
• Share-nothing systems built with APIs
2
Thank You!
@cardmagic
LucasCarlson.com

More Related Content

What's hot (20)

PDF
DockerCon SF 2015: Docker in the New York Times Newsroom
Docker, Inc.
 
PDF
My Journey to Becoming a Docker Captain
Ajeet Singh Raina
 
PPTX
Oscon 2017: Build your own container-based system with the Moby project
Patrick Chanezon
 
PDF
Living with microservices at Pipedrive
Renno Reinurm
 
PPTX
Docker, the Future of Distributed Applications | Docker Tour de France 2014
Julien Barbier
 
PPTX
DockerCon EU 2015: The Missing Piece: when Docker networking unleashing soft ...
Docker, Inc.
 
PDF
Modernizing .NET Apps
Docker, Inc.
 
PDF
Introduction To Flink
Knoldus Inc.
 
PDF
Empower Your Docker Containers with Watson - DockerCon 2017 Austin
Phil Estes
 
PDF
My Journey from Docker Captain to Tips of Captain's Hat Award
Ajeet Singh Raina
 
PDF
Microservice Composition with Docker and Panamax
Michael Arnold
 
PDF
Dockercon 2018 EU Updates
Ajeet Singh Raina
 
PDF
Docker Online Meetup #22: Docker Networking
Docker, Inc.
 
PPTX
DockerCon 15 Keynote - Day 2
Docker, Inc.
 
PDF
Containerize, PaaS, or Go Serverless!?
Phil Estes
 
PDF
CDK 2.0: Docker, Kubernetes, And OSE On Your Desk (Langdon White)
Red Hat Developers
 
PDF
Highly Available Persistent Applications in Containers by Kendrick Coleman, E...
Docker, Inc.
 
PDF
DockerDay2015: Docker Security
Docker-Hanoi
 
PDF
How to build your containerization strategy
Docker, Inc.
 
PDF
Docker Enterprise Edition: Building a Secure Supply Chain for the Enterprise ...
Docker, Inc.
 
DockerCon SF 2015: Docker in the New York Times Newsroom
Docker, Inc.
 
My Journey to Becoming a Docker Captain
Ajeet Singh Raina
 
Oscon 2017: Build your own container-based system with the Moby project
Patrick Chanezon
 
Living with microservices at Pipedrive
Renno Reinurm
 
Docker, the Future of Distributed Applications | Docker Tour de France 2014
Julien Barbier
 
DockerCon EU 2015: The Missing Piece: when Docker networking unleashing soft ...
Docker, Inc.
 
Modernizing .NET Apps
Docker, Inc.
 
Introduction To Flink
Knoldus Inc.
 
Empower Your Docker Containers with Watson - DockerCon 2017 Austin
Phil Estes
 
My Journey from Docker Captain to Tips of Captain's Hat Award
Ajeet Singh Raina
 
Microservice Composition with Docker and Panamax
Michael Arnold
 
Dockercon 2018 EU Updates
Ajeet Singh Raina
 
Docker Online Meetup #22: Docker Networking
Docker, Inc.
 
DockerCon 15 Keynote - Day 2
Docker, Inc.
 
Containerize, PaaS, or Go Serverless!?
Phil Estes
 
CDK 2.0: Docker, Kubernetes, And OSE On Your Desk (Langdon White)
Red Hat Developers
 
Highly Available Persistent Applications in Containers by Kendrick Coleman, E...
Docker, Inc.
 
DockerDay2015: Docker Security
Docker-Hanoi
 
How to build your containerization strategy
Docker, Inc.
 
Docker Enterprise Edition: Building a Secure Supply Chain for the Enterprise ...
Docker, Inc.
 

Viewers also liked (12)

PPTX
Lawhon - Catholes: History, research current use, and future application
Sustainable Summits Initiative
 
PPTX
мой любимый вид спорта
manecelena
 
PDF
Future of Mobile Web Application and Web App Store
Jonathan Jeon
 
PPTX
Docker, Containers and the Future of Application Delivery
Docker, Inc.
 
PDF
Social Media Marketing for Real Estate Agents: 21 Tips
Wishpond
 
PDF
Uses of accelerometer sensor and its application in m-Learning environments: ...
Technological Ecosystems for Enhancing Multiculturality
 
PPTX
Rain technology
Yamuna Devi
 
PPT
WIRELESS SENSOR NETWORK
Tejas Wasule
 
PPTX
Skinput technology
neha pevekar
 
PPTX
wireless sensor network my seminar ppt
Eisha Madhwal
 
PPT
Wireless Sensor Networks
rajatmal4
 
Lawhon - Catholes: History, research current use, and future application
Sustainable Summits Initiative
 
мой любимый вид спорта
manecelena
 
Future of Mobile Web Application and Web App Store
Jonathan Jeon
 
Docker, Containers and the Future of Application Delivery
Docker, Inc.
 
Social Media Marketing for Real Estate Agents: 21 Tips
Wishpond
 
Uses of accelerometer sensor and its application in m-Learning environments: ...
Technological Ecosystems for Enhancing Multiculturality
 
Rain technology
Yamuna Devi
 
WIRELESS SENSOR NETWORK
Tejas Wasule
 
Skinput technology
neha pevekar
 
wireless sensor network my seminar ppt
Eisha Madhwal
 
Wireless Sensor Networks
rajatmal4
 
Ad

Similar to The Future of Web Application Architectures (20)

PDF
Rackspace::Solve NYC - The Future of Applications with Ken Cochrane, Engineer...
Rackspace
 
PPTX
The challenge of application distribution - Introduction to Docker (2014 dec ...
Sébastien Portebois
 
PDF
Getting Started with Docker - Nick Stinemates
Atlassian
 
PPTX
Intro Docker to Loire Atlantique
Julien Barbier
 
PDF
Rackspace::Solve SFO - Solve(Scale) Featuring Docker CEO Ben Golub
Rackspace
 
PDF
Introduction to Docker and Containers- Learning Simple
Sandeep Hijam
 
PDF
Containers, microservices and serverless for realists
Karthik Gaekwad
 
PDF
Are VM Passé?
dotCloud
 
PDF
Are VMs Passé?
Docker, Inc.
 
PDF
Dockers and kubernetes
Dr Ganesh Iyer
 
PDF
Microservices: How loose is loosely coupled?
John Rofrano
 
PDF
ContainerDayVietnam2016: Dockerize a small business
Docker-Hanoi
 
PDF
Docker and OpenStack Boston Meetup
Kamesh Pemmaraju
 
PPTX
Introduction Into Docker Ecosystem
Alexander Pastukhov, OCPJP, OCPJWSD
 
PDF
Rami Sayar - Node microservices with Docker
Web à Québec
 
PDF
Containers, Docker, and Microservices: the Terrific Trio
Jérôme Petazzoni
 
PPTX
OpenStack Boston
Docker, Inc.
 
PPTX
Docker open stack boston
dotCloud
 
PPTX
Microservices and containers for the unitiated
Kevin Lee
 
PPTX
Hypervisor "versus" Linux Containers with Docker !
Francisco Gonçalves
 
Rackspace::Solve NYC - The Future of Applications with Ken Cochrane, Engineer...
Rackspace
 
The challenge of application distribution - Introduction to Docker (2014 dec ...
Sébastien Portebois
 
Getting Started with Docker - Nick Stinemates
Atlassian
 
Intro Docker to Loire Atlantique
Julien Barbier
 
Rackspace::Solve SFO - Solve(Scale) Featuring Docker CEO Ben Golub
Rackspace
 
Introduction to Docker and Containers- Learning Simple
Sandeep Hijam
 
Containers, microservices and serverless for realists
Karthik Gaekwad
 
Are VM Passé?
dotCloud
 
Are VMs Passé?
Docker, Inc.
 
Dockers and kubernetes
Dr Ganesh Iyer
 
Microservices: How loose is loosely coupled?
John Rofrano
 
ContainerDayVietnam2016: Dockerize a small business
Docker-Hanoi
 
Docker and OpenStack Boston Meetup
Kamesh Pemmaraju
 
Introduction Into Docker Ecosystem
Alexander Pastukhov, OCPJP, OCPJWSD
 
Rami Sayar - Node microservices with Docker
Web à Québec
 
Containers, Docker, and Microservices: the Terrific Trio
Jérôme Petazzoni
 
OpenStack Boston
Docker, Inc.
 
Docker open stack boston
dotCloud
 
Microservices and containers for the unitiated
Kevin Lee
 
Hypervisor "versus" Linux Containers with Docker !
Francisco Gonçalves
 
Ad

Recently uploaded (20)

PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Python basic programing language for automation
DanialHabibi2
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Achieving Consistent and Reliable AI Code Generation - Medusa AI
medusaaico
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
NewMind AI - Journal 100 Insights After The 100th Issue
NewMind AI
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
LLMs.txt: Easily Control How AI Crawls Your Site
Keploy
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Python basic programing language for automation
DanialHabibi2
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 

The Future of Web Application Architectures

  • 1. The Future of Web Application Architectures by Lucas Carlson
  • 2. Programmer 18 Years Author • Ruby Cookbook • Programming for PaaS Entrepreneur • AppFog PaaS • Mog Music Streaming Service Current Role • Chief Innovation Officer at CenturyLink Who Am I?
  • 3. Structure 1 Who Am I? 2 What’s Next for Web App Architectures? 3 How to Future-Proof Your Applications with Micro-Services 4 The 6 Insider Tech Trends in Cloud Computing 5 Getting the Most From Docker and Linux Containers 6 Conclusions
  • 4. What’s Next for Web App Architectures?
  • 6. Web Architectures Are Changing From heavy monolithic backend systems To lightweight distributed share-nothing systems
  • 7. What’s Share-Nothing?  No persistent state is ever stored on application instances (database, uploaded files, sessions, etc.)  Easy to scale because you can add more to a load balancer without worrying about discrepancies
  • 9. Web Architectures Are Changing From hands-on IT-deployed and managed To automated DevOps-deployed through PaaS or continuous integration and continuous deployment
  • 11. How to Future-Proof Your Applications with Micro-Services
  • 12. 4 Things to Think About JSON REST APIs Asset hosting Session management Async Processing
  • 13. JSON REST APIs Micro-Services are small lightweight services Communicate with databases to produce JSON through REST APIs Minimalist application logic by encapsulating one thing well (authentication service, blog post service, credit card service, etc.)
  • 14. Asset Hosting Use Object Storage and CDN to eliminate dependencies on disk Allows you to scale horizontally This is the foundation of share-nothing architecture
  • 15. Session Management • By default, many sessions are stores on disk • This breaks share-nothing architecture • Especially look out for WordPress/ Drupal/Joomla
  • 16. Async Processing Evaluate if you want a simple queue or to consider orchestration which has first-class queue in it Keeping micro-services lightweight means running complicated logic asynchronously
  • 18. The 6 Insider Tech Trends In Cloud Computing
  • 19. #1 DockerLinux Containers are Revolutionizing Infrastructure
  • 20. #2 Orchestration Declarative DevOps Automation for Cloud Apps
  • 21. Automation from Source Control to Test to Production #3 Continuous Integration & Deployment
  • 22. #4 Micro Everything Micro-Services | Micro-Frameworks | Micro-Languages | Go, Hack, Sinatra, etc.
  • 23. #5 Mobile Great APIs are essential for mobile app development
  • 24. • More logic happening in the browser than ever using the same mobile APIs • AngularJS, Backbone, Ember #6 Client Side Javascript
  • 25. Getting the Most From Docker and Linux Containers
  • 26. Cargo Transport Pre-1960 Multiplicity of Goods Multiplicity of methods for transporting Do I worry about how goods interact Can I transport quickly and smoothly
  • 27. Multiplicity of Goods Multiplicity of methods for transporting Do I worry about how goods interact Can I transport quickly and smoothly Solution: Intermodal Shipping Container
  • 28. Docker is a shipping container system for code Static website Web frontendUser DB Queue Analytics DB Multiplicity of Stacks Multiplicity of hardware environments Do services and apps interact appropriately? Can I migrate smoothly and quickly Development VM QA server Public Cloud Contributor’s laptopProduction ClusterCustomer Data Center
  • 29. Containers vs. VMs App A Bins/Li bs Guest OS App A’ Bins/Li bs Guest OS App B Bins/Li bs Guest OS Hypervisor (Type 2) Host OS Server VM Containers are isolated, but share OS and, where appropriate, bins/libraries App App App App App App App Bins/Libs Bins/Libs Docker Engine Host OS Server Container
  • 30. What are the basics of the Docker system? Build ContainerA ContainerA Push Search Pull Run Docker Engine Host 1 OS (Linux) ContainerC ContainerB Source Code Repository Dockerfile For A Docker Container Image Registry Docker Engine Host 2 OS 2 (Linux)
  • 31. What does it looks like ?
  • 32. Without Docker $ echo Hello World Hello World
  • 33. With Docker $ docker run ubuntu echo Hello World Hello World
  • 34. Interactive Docker $ docker run -i -t ubuntu bash root@0bffc7cc54f7:/# ps PID TTY TIME CMD 1 ? 00:00:00 bash 16 ? 00:00:00 ps
  • 35. Daemonized Docker $ docker run -d ubuntu nc -l -p 80 5b06834fe326 $ docker ps CONTAINER ID IMAGE COMMAND 5b06834fe326 ubuntu:latest "nc -l -p 80" CREATED STATUS PORTS 22 seconds ago Up 21 seconds
  • 36. Open Ports Docker $ docker run -d -p 80 ubuntu nc -l -p 80 c7a533f7901b $ docker ps CONTAINER ID IMAGE COMMAND c7a533f7901b ubuntu:latest "nc -l -p 80" CREATED STATUS PORTS 2 seconds ago Up 1 seconds 0.0.0.0:49153->80/tcp
  • 37. Dockerfile FROM Ubuntu MAINTAINER Lucas Carlson <[email protected]> RUN apt-get update && apt-get install -y nginx RUN echo "daemon off;" >> /etc/nginx/nginx.conf ADD . /usr/share/nginx/html EXPOSE 80 CMD /usr/sbin/nginx -c /etc/nginx/nginx.conf
  • 38. Build Docker Images $ docker build -t cardmagic/nginx . Sending build context to Docker daemon 2.56 kB Sending build context to Docker daemon Step 0 : FROM ubuntu ---> 5506de2b643b Step 1 : MAINTAINER Lucas Carlson <[email protected]> ---> Using cache ---> 6d173bfde6c5 Step 2 : RUN apt-get update && apt-get install -y nginx ---> Using cache ---> 8a9eb983d6f9 Step 3 : ADD . /usr/share/nginx/html ---> Using cache ---> 4b2ebb367b5f Step 4 : EXPOSE 80 ---> Using cache ---> ce5d15c82edf Step 5 : CMD /usr/bin/nginx ---> Using cache ---> 3b7a04a72de7 Successfully built 3b7a04a72de7
  • 39. Run your Container $ docker run -d -p 80 cardmagic/nginx c7a533f7901b $ docker ps CONTAINER ID IMAGE COMMAND f2cd2860cf84 cardmagic/nginx:latest “/usr/sbin/nginx" CREATED STATUS PORTS 3 seconds ago Up 2 seconds 0.0.0.0:49158->80/tcp $ curl http://$(boot2docker ip):49158/ <!DOCTYPE html> <html> <head> <title>Welcome to nginx!</title>
  • 40. $ docker pull cardmagic/nginx Share your Container $ docker push cardmagic/nginx
  • 41. Docker’s Do and Don’ts Do  Containerize your application code  Use containers to create consistency Don’ts  Run databases inside containers yet  Run multi-tenant containers
  • 43. Conclusion Automation is dominating the future landscape of web app architectures 1 Docker and Linux Containers are the new way to package and distribute your applications 3 Micro-services are the future: • Lightweight distributed • Share-nothing systems built with APIs 2