SlideShare a Scribd company logo
Docker Containers and SQL
Server coexistence
OnPrem or on Azure
Our Main Sponsors:
Say Thank you to Volunteers:
 They spend their FREE time to give you this event.
 Because they are crazy. 
 Because they want YOU
to learn from the BEST IN THE WORLD.
João Sarmento
Eduardo Piairo Diamantino Falcão
Nuno Rafael
Filipe Coelho
Sponsor Sessions at 15:05
 Don’t miss them, they might be getting
distributing some awesome prizes!
Auditório Magno
Auditório 1
Exciting certification changes with SQL
Server 2016
Culto de BI
Successful projects
Pedro Sousa
Who Am I
DevScope
Where I Work
Systems Engineer, Insider, Azure Advisor
What I Do
@psousa75
pedro.sousa@devscope.net
Where To Find Me
http://bit.ly/2dwFMxI
Quick Survey
Microsoft Ignite | September 26–30, 2016, Atlanta, GA
Microsoft Ignite | September 26–30, 2016, Atlanta, GA
Microsoft Ignite | September 26–30, 2016, Atlanta, GA
Containers
are cool…
What, Why,
How of
Containers
Docker
overview
Taking the first
step on your
path to
containerization
Tooling to
make you
more efficient
BRK3146
Agenda
 Docker and
Container adoption
 Docker & MSFT
 Evolution
 Full Stack
 Basics…
 SQL Server
 Backend options
 Play time
https://www.docker.com/survey-2016
Docker Survey 2016
Container adopters…
ETC...
Microsoft’s Docker/Container Adoption
6/13/2017 | Docker Containers and SQL Server coexistence14 |
?
SQL Saturday 2016 - Porto, Docker Containers and SQL Server coexistence​
SQL Saturday 2016 - Porto, Docker Containers and SQL Server coexistence​
Comparison: Containers vs. VMs
App
A
Hypervisor (Type 2)
Host OS
Server
Guest
OS
Bins/
Libs
App
A’
Guest
OS
Bins/
Libs
App
B
Guest
OS
Bins/
Libs
AppA’
Host OS
Server
Bins/Libs
AppA
Bins/Libs
AppB
AppB’
AppB’
AppB’
VM
Container
Containers are isolated,
but share OS kernel and, where
appropriate, bins/libraries
Guest
OS
Guest
OS
…result is significantly faster
deployment, much less overhead,
easier migration, faster restart
What is a container?
Containers = Operating system virtualization
Traditional virtual machines = hardware virtualization
CONTAINER CONTAINER CONTAINER
Windows Server Containers
Maximum speed and density
Kernel
CONTAINER
Kernel
CONTAINER
Kernel
CONTAINER
Hyper-V Containers
Isolation plus performance
Applications
Kernel
CONTAINER CONTAINER CONTAINER
VM VM VM
Layer Supported Technologies
Configuration as
Code
ARM, Dockerfile, Docker
Compose, Marathon.json
Host cluster
management
VM Scale Sets
Container
orchestration
Docker Swarm, Chronos,
Marathon, Apache Mesos
Monitoring OMS, Statsd
Layered for flexibility and agility
Containers
Container ToolingService Tooling Layer Supported Technologies
Configuration as
Code
ARM, Dockerfile, Docker
Compose, Marathon.json
Host cluster
management
VM Scale Sets
Container
orchestration
Docker Swarm, Chronos,
Marathon, Apache Mesos
Monitoring OMS, Statsd
Networking IP per container
Storage Persistent storage
???
Microsoft Operations Management Suite
Monitoring Solution for Docker
Syslog events
Performance metrics
Container data
SQL Server
As a backend… As a container…
Active Directory Identity for Containers
Credential Spec
DefaultAccount:
DomainMyWebApp1$
Service: IIS
User:
LocalSystem
DomainMyWebApp1$
1) Use default accounts for services &
tasks (LocalSystem, Network Service)
2) Provide default service account to
use when starting container
3) Container
connects using
service account
BRK3146
PLAYING AROUND…
Getting Started
1. Install Container Feature
1. Install-WindowsFeature containers
2. Restart-Computer –Force
2. Install Docker
1. Invoke-WebRequest
"https://get.docker.com/builds/Windows/x86_64/docker-1.12.1.zip"
-OutFile "$env:TEMPdocker-1.12.1.zip" –UseBasicParsing
2. Expand-Archive -Path "$env:TEMPdocker-1.12.1.zip" -
DestinationPath $env:ProgramFiles
https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_server
Getting Started (continued)
2. Install Docker (continued)
2. # For quick use, does not require shell to be restarted.
$env:path += ";c:program filesdocker“
# For persistent use, will apply even after a reboot.
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:Program
FilesDocker", [EnvironmentVariableTarget]::Machine)
3. .dockerd --register-service
4. Start-Service docker
https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_server
Getting Started (continued)
2. Install Base Container Images
1. docker pull microsoft/windowsservercore
2. docker images
3. Test your install
1. docker pull microsoft/iis
2. docker run -d -p 80:80 microsoft/iis ping -t localhost
https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_server
DEMO
TIME !!
!
ANY
QUESTIONS ?
SQL Saturday 2016 - Porto, Docker Containers and SQL Server coexistence​

More Related Content

PPTX
Why Kubernetes on Azure
PPTX
Making sense of containers, docker and Kubernetes on Azure.
PPTX
Container DevOps in Azure
PDF
Running Containers on Azure
PPTX
Best Practices with Azure & Kubernetes
PPTX
Getting started with containers on Azure
PDF
04_Azure Kubernetes Service: Basic Practices for Developers_GAB2019
PPTX
Ignite 2016 - Windows Containers
Why Kubernetes on Azure
Making sense of containers, docker and Kubernetes on Azure.
Container DevOps in Azure
Running Containers on Azure
Best Practices with Azure & Kubernetes
Getting started with containers on Azure
04_Azure Kubernetes Service: Basic Practices for Developers_GAB2019
Ignite 2016 - Windows Containers

What's hot (14)

PPTX
The container ecosystem @ Microsoft A story of developer productivity
PPTX
Kubernetes for .NET Developers
DOCX
Devops aws
PDF
My AWS production stack with Docker, ECS, CloudFormation and other services
PDF
Orchestrating Distributed Apps with Docker
PDF
AWS Community Day - Andrew May - Running Containers in AWS
PPTX
Azure Service Fabric: The road ahead for microservices
PPTX
Consolidating Infrastructure with Azure Kubernetes Service - MS Online Tech F...
PPTX
RBAC in Azure Kubernetes Service AKS
PPTX
Docker - from 1$ Billion Startup to the Future Industry Standard
PPTX
WinOps Conf 2015 - Deploying apps to the Cloud with Octopus Deploy
PPTX
DevOps with Kubernetes and Helm - Jenkins World Edition
PPTX
Flisol 2018 - Microsoft + Open Source
PPTX
Kubernetes VS. App Service: When the orchestrator challenges the platform
The container ecosystem @ Microsoft A story of developer productivity
Kubernetes for .NET Developers
Devops aws
My AWS production stack with Docker, ECS, CloudFormation and other services
Orchestrating Distributed Apps with Docker
AWS Community Day - Andrew May - Running Containers in AWS
Azure Service Fabric: The road ahead for microservices
Consolidating Infrastructure with Azure Kubernetes Service - MS Online Tech F...
RBAC in Azure Kubernetes Service AKS
Docker - from 1$ Billion Startup to the Future Industry Standard
WinOps Conf 2015 - Deploying apps to the Cloud with Octopus Deploy
DevOps with Kubernetes and Helm - Jenkins World Edition
Flisol 2018 - Microsoft + Open Source
Kubernetes VS. App Service: When the orchestrator challenges the platform
Ad

Similar to SQL Saturday 2016 - Porto, Docker Containers and SQL Server coexistence​ (20)

PPTX
Sky High With Azure
PDF
Enter The Dragon - SQL 2014 on Server Core - SQLSaturday #341 Porto Edition
PPTX
Azure DevOps Best Practices Webinar
PPTX
2019 04 Containers - The secret to shipping cloud workloads
PPTX
2019 05 - Exploring Container Offerings in Azure
PPTX
Managing Micro Services with Windows Container Service
DOCX
Azure Administration.docx
PPTX
Windows Azure & How to Deploy Wordress
PPTX
Azure ai on premises with docker
PPTX
Microsoft, Linux, Open Source, DevOps
PDF
Simpler, faster, cheaper Enterprise Apps using only Spring Boot on GCP
PDF
Using Redgate, AKS and Azure to bring DevOps to your Database
PDF
Using Redgate, AKS and Azure to bring DevOps to your database
PDF
Open source based container solution in Azure - May Docker Meetup
PDF
DCSF19 How To Build Your Containerization Strategy
PPTX
Sql Azure Pass
PPTX
Sql Azure Pass
PDF
DevOps Design for different deployment options
PDF
DevOps deployment solution for on-premises
PDF
Azure Devops Server Deployment for on-premises
Sky High With Azure
Enter The Dragon - SQL 2014 on Server Core - SQLSaturday #341 Porto Edition
Azure DevOps Best Practices Webinar
2019 04 Containers - The secret to shipping cloud workloads
2019 05 - Exploring Container Offerings in Azure
Managing Micro Services with Windows Container Service
Azure Administration.docx
Windows Azure & How to Deploy Wordress
Azure ai on premises with docker
Microsoft, Linux, Open Source, DevOps
Simpler, faster, cheaper Enterprise Apps using only Spring Boot on GCP
Using Redgate, AKS and Azure to bring DevOps to your Database
Using Redgate, AKS and Azure to bring DevOps to your database
Open source based container solution in Azure - May Docker Meetup
DCSF19 How To Build Your Containerization Strategy
Sql Azure Pass
Sql Azure Pass
DevOps Design for different deployment options
DevOps deployment solution for on-premises
Azure Devops Server Deployment for on-premises
Ad

More from Pedro Sousa (18)

PPTX
Lets talk about: Azure Kubernetes Service (AKS)
PDF
Virtual Global Azure 2020 - Azure Monitor
PPTX
Let's Talk About: Database Migration Service
PPTX
Let's Talk About: Azure Networking
PDF
Let's Talk About: Azure Monitor
PPTX
OPEN KNOWLEDGE PLATFORM USE-CASES - SQLSatCambridge 2018
PPTX
OPEN KNOWLEDGE PLATFORM USE-CASES - TugaIT 2018
PPTX
Yet Another Session about Docker and Containers
PPTX
Yet Another Session about Docker and Containers​
PPTX
Octopus Deploy and Docker
PPTX
Octopus Deploy and Biztalk
PPTX
Azure Container Services​
PPTX
Azure Container Services​
PPTX
SQL Server Monitor and Maintenance​ with Azure OMS
PPTX
Operations Management Suite
PPTX
TugaIT 2016 - Microservices Architecture With Docker, Windows Containers And ...
PPTX
TugaIT 2016 - Docker and the world of “containerized" environments​
PPTX
Datacenter Airlift - "Docker and the world of “containerized" environments"
Lets talk about: Azure Kubernetes Service (AKS)
Virtual Global Azure 2020 - Azure Monitor
Let's Talk About: Database Migration Service
Let's Talk About: Azure Networking
Let's Talk About: Azure Monitor
OPEN KNOWLEDGE PLATFORM USE-CASES - SQLSatCambridge 2018
OPEN KNOWLEDGE PLATFORM USE-CASES - TugaIT 2018
Yet Another Session about Docker and Containers
Yet Another Session about Docker and Containers​
Octopus Deploy and Docker
Octopus Deploy and Biztalk
Azure Container Services​
Azure Container Services​
SQL Server Monitor and Maintenance​ with Azure OMS
Operations Management Suite
TugaIT 2016 - Microservices Architecture With Docker, Windows Containers And ...
TugaIT 2016 - Docker and the world of “containerized" environments​
Datacenter Airlift - "Docker and the world of “containerized" environments"

Recently uploaded (20)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
Spectroscopy.pptx food analysis technology
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Network Security Unit 5.pdf for BCA BBA.
PPT
Teaching material agriculture food technology
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Encapsulation theory and applications.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Understanding_Digital_Forensics_Presentation.pptx
Spectroscopy.pptx food analysis technology
The AUB Centre for AI in Media Proposal.docx
Network Security Unit 5.pdf for BCA BBA.
Teaching material agriculture food technology
The Rise and Fall of 3GPP – Time for a Sabbatical?
Building Integrated photovoltaic BIPV_UPV.pdf
Encapsulation theory and applications.pdf
20250228 LYD VKU AI Blended-Learning.pptx
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Chapter 3 Spatial Domain Image Processing.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
MYSQL Presentation for SQL database connectivity
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Advanced methodologies resolving dimensionality complications for autism neur...
Reach Out and Touch Someone: Haptics and Empathic Computing
NewMind AI Weekly Chronicles - August'25 Week I
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf

SQL Saturday 2016 - Porto, Docker Containers and SQL Server coexistence​

  • 1. Docker Containers and SQL Server coexistence OnPrem or on Azure
  • 3. Say Thank you to Volunteers:  They spend their FREE time to give you this event.  Because they are crazy.   Because they want YOU to learn from the BEST IN THE WORLD. João Sarmento Eduardo Piairo Diamantino Falcão Nuno Rafael Filipe Coelho
  • 4. Sponsor Sessions at 15:05  Don’t miss them, they might be getting distributing some awesome prizes! Auditório Magno Auditório 1 Exciting certification changes with SQL Server 2016 Culto de BI Successful projects
  • 5. Pedro Sousa Who Am I DevScope Where I Work Systems Engineer, Insider, Azure Advisor What I Do @psousa75 pedro.sousa@devscope.net Where To Find Me
  • 7. Microsoft Ignite | September 26–30, 2016, Atlanta, GA
  • 8. Microsoft Ignite | September 26–30, 2016, Atlanta, GA
  • 9. Microsoft Ignite | September 26–30, 2016, Atlanta, GA
  • 10. Containers are cool… What, Why, How of Containers Docker overview Taking the first step on your path to containerization Tooling to make you more efficient BRK3146
  • 11. Agenda  Docker and Container adoption  Docker & MSFT  Evolution  Full Stack  Basics…  SQL Server  Backend options  Play time
  • 14. Microsoft’s Docker/Container Adoption 6/13/2017 | Docker Containers and SQL Server coexistence14 | ?
  • 17. Comparison: Containers vs. VMs App A Hypervisor (Type 2) Host OS Server Guest OS Bins/ Libs App A’ Guest OS Bins/ Libs App B Guest OS Bins/ Libs AppA’ Host OS Server Bins/Libs AppA Bins/Libs AppB AppB’ AppB’ AppB’ VM Container Containers are isolated, but share OS kernel and, where appropriate, bins/libraries Guest OS Guest OS …result is significantly faster deployment, much less overhead, easier migration, faster restart
  • 18. What is a container? Containers = Operating system virtualization Traditional virtual machines = hardware virtualization CONTAINER CONTAINER CONTAINER Windows Server Containers Maximum speed and density Kernel CONTAINER Kernel CONTAINER Kernel CONTAINER Hyper-V Containers Isolation plus performance Applications Kernel CONTAINER CONTAINER CONTAINER VM VM VM
  • 19. Layer Supported Technologies Configuration as Code ARM, Dockerfile, Docker Compose, Marathon.json Host cluster management VM Scale Sets Container orchestration Docker Swarm, Chronos, Marathon, Apache Mesos Monitoring OMS, Statsd Layered for flexibility and agility Containers Container ToolingService Tooling Layer Supported Technologies Configuration as Code ARM, Dockerfile, Docker Compose, Marathon.json Host cluster management VM Scale Sets Container orchestration Docker Swarm, Chronos, Marathon, Apache Mesos Monitoring OMS, Statsd Networking IP per container Storage Persistent storage ???
  • 20. Microsoft Operations Management Suite Monitoring Solution for Docker Syslog events Performance metrics Container data
  • 21. SQL Server As a backend… As a container…
  • 22. Active Directory Identity for Containers Credential Spec DefaultAccount: DomainMyWebApp1$ Service: IIS User: LocalSystem DomainMyWebApp1$ 1) Use default accounts for services & tasks (LocalSystem, Network Service) 2) Provide default service account to use when starting container 3) Container connects using service account BRK3146
  • 24. Getting Started 1. Install Container Feature 1. Install-WindowsFeature containers 2. Restart-Computer –Force 2. Install Docker 1. Invoke-WebRequest "https://get.docker.com/builds/Windows/x86_64/docker-1.12.1.zip" -OutFile "$env:TEMPdocker-1.12.1.zip" –UseBasicParsing 2. Expand-Archive -Path "$env:TEMPdocker-1.12.1.zip" - DestinationPath $env:ProgramFiles https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_server
  • 25. Getting Started (continued) 2. Install Docker (continued) 2. # For quick use, does not require shell to be restarted. $env:path += ";c:program filesdocker“ # For persistent use, will apply even after a reboot. [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:Program FilesDocker", [EnvironmentVariableTarget]::Machine) 3. .dockerd --register-service 4. Start-Service docker https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_server
  • 26. Getting Started (continued) 2. Install Base Container Images 1. docker pull microsoft/windowsservercore 2. docker images 3. Test your install 1. docker pull microsoft/iis 2. docker run -d -p 80:80 microsoft/iis ping -t localhost https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_server

Editor's Notes

  • #19: Benefits of containers include: Density and agility, enabling agile application development and deployment Don’t mistake Hyper-V container with a VM – containers are much more agile (deploy with a flip of the bits, etc.)
  • #24: This has a build – read callouts in order