SlideShare a Scribd company logo
Lean & Mean Application stack
using
Docker EE, Golang & Multi Stage builds
Anoop Kumar | anoop@docker.com
Solution Architect, Docker Inc
@anooplive
Today
• Multi Stage builds in Docker
• Orchestration Concepts
• Demo
Docker is a Platform
Lean & mean applications using Docker EE and golang
Multi-Stage Builds
OPTIMIZE IMAGES FOR MORE EFFICIENT RESOURCE UTILIZATION
build App.go
App.go
Stage 1
Stage 2
293 MB
11.6 MB
KEY FEATURES
BENEFITS
• Use multiple FROM statements to define stages
• Selectively copy artifacts from one stage to
another
• Create thinner images, optimized for production
without manual tuning
• Accelerate image pulls and deployment time while
also improving resource efficiency in both the
registry and resulting containers
Orchestration
Swarm Architecture
Managing Swarm Nodes
$ docker swarm init
$ docker swarm join-token worker|manager
$ docker swarm join
$ docker node ls
$ docker node inspect
$ docker swarm leave
$ docker node remove
UNIFORMLY OPERATE, MANAGE, AND SECURE WINDOWS AND LINUX CONTAINERS
Node
Manager
Node
Worker
Node
Manager
Node
Manager
Node
Worker
Node
Worker
Node
Worker
Worker Nodes
docker
universal control plane
trusted registry
KEY FEATURES
BENEFITS
• Extend enterprise security features like image
signing, image scanning, and secrets
management to both Windows and Linux worker
nodes
• Leverage the same LDAP/AD integration and
RBAC rules across Windows and Linux nodes
• Visualize all apps in the same environment
• Improve resource utilization and incur less
management overhead with centralized
management across Windows and Linux apps
• Reduce risk with enforced processes and policies
that are consistent across Windows & Linux apps
Mixed Windows and Linux Clusters
Services
• A service represents a single unique component of an application.
• Composed of one or more tasks
• Created in docker cli, compose, and UCP
Docker Tasks: Atomic Unit of Orchestration
Service Lifecycle Management
13
Publish Mode: Host vs Ingress
Docker host
2task2.myservice
Docker host
1task1.myservice
Docker host
3
IPVS IPVS IPVS
Ingress network
8080 8080
“mynet” overlay network
LB
8080
Docker host
2
Docker host
1task1.myservice
Docker host
3
bridge
LB
bridge
task3.myservice
bridge
8080 8080
Stacks
• A Stack is a collection of services making up an application.
• Define a stack using a compose yaml file.
• Manage stacks using cli or Docker EE UI.
Demo Application
● 3 tier - Web (Caddy), application tier logic, redis db
● App tier (tracks hits to each container)
○ Written in Golang
○ Using ONBUILD & statically linked binary
● Accounts for environmental differences
● Graceful exits on SIGTERM
● Custom hostnames
● Deployable on Docker4M/W, Docker EE & PWD
● One click deploy
> demo
Key Takeaways
• Clustering applications in Docker is easy
• Docker swarm is secure (TLS) by default
• Minimal images offer higher security, better
efficiency and low technical debt
Next Steps
THE CALL TO ACTION
• Docker Labs | dockr.ly/labs
• | Oct 16-19 Copenhagen
• | dockr.ly/2yLY7h5
GetDockerCertified
THANK YOU :)
@anooplive | anoop@docker.com

More Related Content

What's hot (20)

PDF
Hands on docker
inovex GmbH
 
PDF
Build & Deploy Multi-Container Applications to AWS
Docker, Inc.
 
PDF
Docker on docker leveraging kubernetes in docker ee
Docker, Inc.
 
PDF
A vision of persistence
Docker, Inc.
 
PDF
How to build your containerization strategy
Docker, Inc.
 
PDF
Efficient Parallel Testing with Docker by Laura Frank
Docker, Inc.
 
PDF
Docker multi-stage build
Alexei Ledenev
 
PDF
Introduction to Docker Compose
Ajeet Singh Raina
 
PPTX
Docker basics
AmanSoni129
 
PDF
Node.js Rocks in Docker for Dev and Ops
Bret Fisher
 
PDF
Considerations for operating docker at scale
Docker, Inc.
 
PDF
Packaging software for the distribution on the edge
Docker, Inc.
 
PPTX
Docker Platform 1.9
Docker, Inc.
 
PDF
Kubernetes with docker
Docker, Inc.
 
PDF
DockerCon SF 2015: Docker at Lyft
Docker, Inc.
 
PDF
Docker for Mac and Windows: The Insider's Guide by Justin Cormack
Docker, Inc.
 
PDF
Kubernetes in Docker
Docker, Inc.
 
PDF
Android Meets Docker
Docker, Inc.
 
PDF
Production sec ops with kubernetes in docker
Docker, Inc.
 
PDF
The Fairy Tale of the One Command Build Script
Docker, Inc.
 
Hands on docker
inovex GmbH
 
Build & Deploy Multi-Container Applications to AWS
Docker, Inc.
 
Docker on docker leveraging kubernetes in docker ee
Docker, Inc.
 
A vision of persistence
Docker, Inc.
 
How to build your containerization strategy
Docker, Inc.
 
Efficient Parallel Testing with Docker by Laura Frank
Docker, Inc.
 
Docker multi-stage build
Alexei Ledenev
 
Introduction to Docker Compose
Ajeet Singh Raina
 
Docker basics
AmanSoni129
 
Node.js Rocks in Docker for Dev and Ops
Bret Fisher
 
Considerations for operating docker at scale
Docker, Inc.
 
Packaging software for the distribution on the edge
Docker, Inc.
 
Docker Platform 1.9
Docker, Inc.
 
Kubernetes with docker
Docker, Inc.
 
DockerCon SF 2015: Docker at Lyft
Docker, Inc.
 
Docker for Mac and Windows: The Insider's Guide by Justin Cormack
Docker, Inc.
 
Kubernetes in Docker
Docker, Inc.
 
Android Meets Docker
Docker, Inc.
 
Production sec ops with kubernetes in docker
Docker, Inc.
 
The Fairy Tale of the One Command Build Script
Docker, Inc.
 

Similar to Lean & mean applications using Docker EE and golang (20)

PDF
Introduction to Docker and Linux Containers @ Cloud Computing Rhein Main
Puja Abbassi
 
PDF
Killer Docker Workflows for Development
Chris Tankersley
 
PDF
Docker slides
Jyotsna Raghuraman
 
PPTX
ma-formation-en-Docker-jlklk,nknkjn.pptx
imenhamada17
 
PDF
Accelerate your software development with Docker
Andrey Hristov
 
PPTX
Accelerate your development with Docker
Andrey Hristov
 
PDF
Docker Dojo
Hugo González Labrador
 
PDF
Docker and-containers-for-development-and-deployment-scale12x
rkr10
 
PDF
Introduction to Docker and Monitoring with InfluxData
InfluxData
 
PPTX
Docker Basic to Advance
Paras Jain
 
PDF
Docker in practice
Geert Pante
 
PDF
Docker Introduction + what is new in 0.9
Jérôme Petazzoni
 
PDF
Docker Introduction, and what's new in 0.9 — Docker Palo Alto at RelateIQ
Jérôme Petazzoni
 
PDF
Introduction to Docker, December 2014 "Tour de France" Bordeaux Special Edition
Jérôme Petazzoni
 
PDF
Docker and OpenStack Boston Meetup
Kamesh Pemmaraju
 
PPTX
Docker Timisoara: Dockercon19 recap slides, 23 may 2019
Radulescu Adina-Valentina
 
PPT
Docker, a new LINUX container technology based light weight virtualization
Suresh Balla
 
PPTX
Docker introduction
dotCloud
 
PDF
Introduction to Docker - VIT Campus
Ajeet Singh Raina
 
PDF
Real-World Docker: 10 Things We've Learned
RightScale
 
Introduction to Docker and Linux Containers @ Cloud Computing Rhein Main
Puja Abbassi
 
Killer Docker Workflows for Development
Chris Tankersley
 
Docker slides
Jyotsna Raghuraman
 
ma-formation-en-Docker-jlklk,nknkjn.pptx
imenhamada17
 
Accelerate your software development with Docker
Andrey Hristov
 
Accelerate your development with Docker
Andrey Hristov
 
Docker and-containers-for-development-and-deployment-scale12x
rkr10
 
Introduction to Docker and Monitoring with InfluxData
InfluxData
 
Docker Basic to Advance
Paras Jain
 
Docker in practice
Geert Pante
 
Docker Introduction + what is new in 0.9
Jérôme Petazzoni
 
Docker Introduction, and what's new in 0.9 — Docker Palo Alto at RelateIQ
Jérôme Petazzoni
 
Introduction to Docker, December 2014 "Tour de France" Bordeaux Special Edition
Jérôme Petazzoni
 
Docker and OpenStack Boston Meetup
Kamesh Pemmaraju
 
Docker Timisoara: Dockercon19 recap slides, 23 may 2019
Radulescu Adina-Valentina
 
Docker, a new LINUX container technology based light weight virtualization
Suresh Balla
 
Docker introduction
dotCloud
 
Introduction to Docker - VIT Campus
Ajeet Singh Raina
 
Real-World Docker: 10 Things We've Learned
RightScale
 
Ad

Recently uploaded (20)

PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Transcript: Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
Ad

Lean & mean applications using Docker EE and golang

  • 1. Lean & Mean Application stack using Docker EE, Golang & Multi Stage builds Anoop Kumar | [email protected] Solution Architect, Docker Inc @anooplive
  • 2. Today • Multi Stage builds in Docker • Orchestration Concepts • Demo
  • 3. Docker is a Platform
  • 5. Multi-Stage Builds OPTIMIZE IMAGES FOR MORE EFFICIENT RESOURCE UTILIZATION build App.go App.go Stage 1 Stage 2 293 MB 11.6 MB KEY FEATURES BENEFITS • Use multiple FROM statements to define stages • Selectively copy artifacts from one stage to another • Create thinner images, optimized for production without manual tuning • Accelerate image pulls and deployment time while also improving resource efficiency in both the registry and resulting containers
  • 8. Managing Swarm Nodes $ docker swarm init $ docker swarm join-token worker|manager $ docker swarm join $ docker node ls $ docker node inspect $ docker swarm leave $ docker node remove
  • 9. UNIFORMLY OPERATE, MANAGE, AND SECURE WINDOWS AND LINUX CONTAINERS Node Manager Node Worker Node Manager Node Manager Node Worker Node Worker Node Worker Worker Nodes docker universal control plane trusted registry KEY FEATURES BENEFITS • Extend enterprise security features like image signing, image scanning, and secrets management to both Windows and Linux worker nodes • Leverage the same LDAP/AD integration and RBAC rules across Windows and Linux nodes • Visualize all apps in the same environment • Improve resource utilization and incur less management overhead with centralized management across Windows and Linux apps • Reduce risk with enforced processes and policies that are consistent across Windows & Linux apps Mixed Windows and Linux Clusters
  • 10. Services • A service represents a single unique component of an application. • Composed of one or more tasks • Created in docker cli, compose, and UCP
  • 11. Docker Tasks: Atomic Unit of Orchestration
  • 13. 13 Publish Mode: Host vs Ingress Docker host 2task2.myservice Docker host 1task1.myservice Docker host 3 IPVS IPVS IPVS Ingress network 8080 8080 “mynet” overlay network LB 8080 Docker host 2 Docker host 1task1.myservice Docker host 3 bridge LB bridge task3.myservice bridge 8080 8080
  • 14. Stacks • A Stack is a collection of services making up an application. • Define a stack using a compose yaml file. • Manage stacks using cli or Docker EE UI.
  • 15. Demo Application ● 3 tier - Web (Caddy), application tier logic, redis db ● App tier (tracks hits to each container) ○ Written in Golang ○ Using ONBUILD & statically linked binary ● Accounts for environmental differences ● Graceful exits on SIGTERM ● Custom hostnames ● Deployable on Docker4M/W, Docker EE & PWD ● One click deploy
  • 17. Key Takeaways • Clustering applications in Docker is easy • Docker swarm is secure (TLS) by default • Minimal images offer higher security, better efficiency and low technical debt
  • 18. Next Steps THE CALL TO ACTION • Docker Labs | dockr.ly/labs • | Oct 16-19 Copenhagen • | dockr.ly/2yLY7h5 GetDockerCertified