Introduction to Windows Containers
-
Upload
dmitry-zaets -
Category
Engineering
-
view
169 -
download
5
Transcript of Introduction to Windows Containers
![Page 1: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/1.jpg)
WINDOWS CONTAINERSIntroduction to
❤+ =
![Page 2: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/2.jpg)
ASP.NET Application structure
![Page 3: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/3.jpg)
Hardware
OS
.NET Platform
IIS
User Content
![Page 4: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/4.jpg)
Disk SpaceCPU RAMHardware
IO/NetworkProcessesOS Permissions
CompilerFramework.NET Platform Runtime
App PoolSettingsIIS Website
Source CodeUser Content Dependencies
![Page 5: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/5.jpg)
Disk SpaceCPU RAMHardware
![Page 6: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/6.jpg)
Disk SpaceCPU RAMHardware
IO/NetworkProcessesOS Permissions
CompilerFramework.NET Platform Runtime
App PoolSettingsIIS Website
Source CodeUser Content Dependencies
![Page 7: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/7.jpg)
IO/NetworkProcessesOS Permissions
![Page 8: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/8.jpg)
Disk SpaceCPU RAMHardware
IO/NetworkProcessesOS Permissions
CompilerFramework.NET Platform Runtime
App PoolSettingsIIS Website
Source CodeUser Content Dependencies
![Page 9: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/9.jpg)
CompilerFramework.NET Platform Runtime
![Page 10: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/10.jpg)
Disk SpaceCPU RAMHardware
IO/NetworkProcessesOS Permissions
CompilerFramework.NET Platform Runtime
App PoolSettingsIIS Website
Source CodeUser Content Dependencies
![Page 11: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/11.jpg)
App PoolSettingsIIS Website
![Page 12: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/12.jpg)
Disk SpaceCPU RAMHardware
IO/NetworkProcessesOS Permissions
CompilerFramework.NET Platform Runtime
App PoolSettingsIIS Website
Source CodeUser Content Dependencies
![Page 13: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/13.jpg)
Source CodeUser Content Dependencies
![Page 14: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/14.jpg)
Disk SpaceCPU RAMHardware
IO/NetworkProcessesOS Permissions
CompilerFramework.NET Platform Runtime
App PoolSettingsIIS Website
Source CodeUser Content Dependencies
![Page 15: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/15.jpg)
Disk SpaceCPU RAMHardware
IO/NetworkProcessesOS Permissions
CompilerFramework.NET Platform Runtime
App PoolSettingsIIS Website
Source CodeUser Content Dependencies
Provisioning
CI/CD
VM
![Page 16: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/16.jpg)
Hardware
OS
.NET Platform
IIS
User Content
Provisioning
CI/CD
VM
![Page 17: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/17.jpg)
VM
Provisioning
CI/CD
![Page 18: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/18.jpg)
VM
Provisioning
CI/CD
![Page 19: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/19.jpg)
VM
Provisioning
CI/CD 🔒
![Page 20: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/20.jpg)
VM
Provisioning
CI/CD 🔒
![Page 21: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/21.jpg)
Container
![Page 22: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/22.jpg)
![Page 23: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/23.jpg)
![Page 24: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/24.jpg)
Container Benefits
Isolation
Resource control
Portability
![Page 25: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/25.jpg)
Container Fundamentals
HostImage
DockerfileContainer
Client
Registry (Repository)Compose
![Page 26: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/26.jpg)
Client
Docker.exe
![Page 27: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/27.jpg)
Container Fundamentals
HostImage
DockerfileContainer
Client
Registry (Repository)Compose
![Page 28: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/28.jpg)
Host
Physical Machine
Docker ServiceWindows Containers
Virtual Machine
Docker ServiceWindows Containers
![Page 29: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/29.jpg)
Container Fundamentals
HostImage
DockerfileContainer
Client
Registry (Repository)Compose
![Page 30: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/30.jpg)
Image
OS
.NET PlatformIIS
User Content
8.0GB0.4GB
0.7GB
0.2GB
![Page 31: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/31.jpg)
microsoft/aspnet:4.6.0
Image
microsoft/windowsservercore:TP5OS
microsoft/iis:7.5.NET Platform
IISlodgify/app:1.4.2User Content
8.0GB0.4GB
0.7GB
0.2GB
![Page 32: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/32.jpg)
microsoft/aspnet:4.6.2
Image
microsoft/windowsservercore:TP5OS
microsoft/iis:7.5.NET Platform
IISlodgify/app:1.4.2User Content
8.0GB0.4GB
0.7GB
0.2GB
![Page 33: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/33.jpg)
microsoft/aspnet:4.6.2
Image
microsoft/windowsservercore:TP5OS
microsoft/iis:7.5.NET Platform
IIS
User Content lodgify/app:1.4.3
8.0GB0.4GB
0.7GB
0.2GB
![Page 34: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/34.jpg)
Container Fundamentals
HostImage
DockerfileContainer
Client
Registry (Repository)Compose
![Page 35: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/35.jpg)
DockerfileFROM microsoft/windowsservercore
ADD ./scripts /scripts WORKDIR c:\\scripts
ENV CREDENTIALS provision-key.json
RUN powershell ./install-packages.ps1
ENTRYPOINT ["ServiceMonitor.exe", “w3svc"]
![Page 36: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/36.jpg)
Container Fundamentals
HostImage
DockerfileContainer
Client
Registry (Repository)Compose
![Page 37: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/37.jpg)
Container
Container 1OS
.NET Platform
IISUser Content
![Page 38: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/38.jpg)
Container
Container 1OS
.NET Platform
IISUser Content
Container 2OS
.NET Platform
IISUser Content
![Page 39: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/39.jpg)
Container
Container 1OS
.NET Platform
IISUser Content
Container 2OS
.NET Platform
IISUser Content
Container 3OS
.NET Platform
IISUser Content
![Page 40: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/40.jpg)
Container Fundamentals
HostImage
DockerfileContainer
Client
Registry (Repository)Compose
![Page 41: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/41.jpg)
Registry (Repository)Docker Hub
![Page 42: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/42.jpg)
Internal Registry
Registry (Repository)Docker Hub
![Page 43: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/43.jpg)
Registry (Repository)
![Page 44: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/44.jpg)
Compose
lodgify/app
MSSQL
lodgify/app lodgify/app
MSSQL
nginx
x3
x2
x1
![Page 45: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/45.jpg)
Composeservices: app: image: lodgify/app depends_on: - "db" ports: - “80:80"
networks: default: external: name: nat
![Page 46: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/46.jpg)
Windows Containers
![Page 47: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/47.jpg)
Windows Container Types
Windows Server Containers
Hyper-V Containers
![Page 48: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/48.jpg)
Windows Server Containers
![Page 49: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/49.jpg)
Windows Server Containers
Windows Kernel
![Page 50: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/50.jpg)
Windows Server Containers
Windows Kernel
Host User Mode
Container Management
System Processes
![Page 51: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/51.jpg)
Windows Server Containers
Windows Kernel
Host User Mode
Container Management
System Processes
Windows Server Container
System Processes
Application Processes
![Page 52: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/52.jpg)
Windows Server Containers
Windows Kernel
Host User Mode
Container Management
System Processes
Windows Server Container
System Processes
Application Processes
Windows Server Container
System Processes
Application Processes
Windows Server Container
System Processes
Application Processes
Windows Server Container
System Processes
Application Processes
![Page 53: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/53.jpg)
Hyper-V Containers
![Page 54: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/54.jpg)
Hyper-V Containers
🙈
![Page 55: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/55.jpg)
Demo time!
![Page 56: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/56.jpg)
Some links
Get 3x100$ Azure for testing
http://bit.ly/2enCJqehttp://bit.ly/2enCZ8F
How to deploy Containers
http://bit.ly/2fEiG8O
Container Internals
![Page 57: Introduction to Windows Containers](https://reader030.fdocuments.in/reader030/viewer/2022020108/586e8c661a28aba0038b847b/html5/thumbnails/57.jpg)
Questions?http://dmitry.js.org
@dmitryzaetsdmitry-zaets