Windows ✖︎ Docker

22
OSC15SC LT Windows Docker

Transcript of Windows ✖︎ Docker

Page 1: Windows ✖︎ Docker

▪OSC15SC LT ▪Windows ✖ Docker

Page 2: Windows ✖︎ Docker

MICROSOFT   CONF IDENT I A L   –   I N T ERNAL  ONLY

Page 3: Windows ✖︎ Docker
Page 4: Windows ✖︎ Docker
Page 5: Windows ✖︎ Docker

Windows Server Containers:•Windows Server 2016 Technical Preview now includes containers, which are an isolated, resource-controlled, and portable operating environment. They are an isolated place where an application can run without affecting the rest of the system or the system affecting the application. For some additional information on containers, see Containers: Docker, Windows and Trends.

https://technet.microsoft.com/library/dn765472.aspx 

Page 6: Windows ✖︎ Docker

Microsoft releases first preview of Windows Server Containers with Docker support

http://www.firstpost.com/business/microsoft-releases-first-preview-of-windows-server-containers-with-docker-support-2402056.html 

Page 7: Windows ✖︎ Docker

Windows版とLinux版の違い

• Windows版は上にWindowsを載せるものです。

ニュースリリースで読み間違えないようにご注意をお願いします。

7http://blogs.technet.com/b/server-cloud/archive/2015/04/08/microsoft-announces-new-container-technologies-for-the-next-generation-cloud.aspx

Page 8: Windows ✖︎ Docker

Kernel

Windows Server /Hyper-V Containerの違い

8

User mode

Kernel mode

Host OS

Container Management

stack

Docker PS WMI

Application A

Application B

Application C

Application D

OS

Container Management

stack

Docker PS WMI

Application A

Application B

Hypervisor

Kernel Kernel Kernel

Page 9: Windows ✖︎ Docker

Windows と Linux(とHyper-V)を管理

9

Page 10: Windows ✖︎ Docker

10

deliver Windows Containers Docker VM Extension Hyper-V Containers Visual Studio tooling Continuous Integration with Visual Studio online Docker Trusted Registry support in VSO Marketplace integration of containerized applications

Azure の 対応インフラをPaaS から IaaSへ変更 オープン系DevOps環境への対応サービスとしての統合(メニュー、GUI)

Docker関連の取り組みは二つ

Page 11: Windows ✖︎ Docker

オペレーション自動化!Azure の Dev Ops フェーズごとの選択肢

11

Build Provisioning Release Management Configuration Monitoring &

Diagnostics

GitHub

Jenkins

Cloudbees

Teamcity

Bamboo

PowerShell

Azure CLI

(↑後ほどDemo)

ARM templates

Chef Knife

Puppet CLI

Vagrant

Deis

Visual Studio RM

Octopus Deploy

Dev/Test Labs

Chef

DSC Extension

Puppet Labs

Salt

Application

Insights

OpInsights

Windows & Linux

Diagnostics

Extensions

New Relic

Nagios

DataDog

Azure Monitoring

Page 12: Windows ✖︎ Docker

もっと使いやすくなるために裏の仕組みを変更中

•最近AzureのIaaSが変わりました

12

Page 13: Windows ✖︎ Docker

Classic Model (v1)

Azure のインフラが変わります(新旧のモードチェンジ可)

Resource Manager (V2)

Storage Account

Virtual Network

Cloud Service

Subnet-1Disk (blob)

VM w/ IP

Address

Resource Group

VM NICVM IP Addres

s

Load Balance

d Endpoint w/ IP Address

Load Balance

r

DependsOn

ReferenceReference

Backend Pool (NICs)

LB IP Addres

s

Reference

Coming Soon… Gateways (VPN) ExpressRoute

Network Security Group ACLS (deployed to VM, NIC, or Subnet)

VNet

Subnet

Storage Accoun

tDisk (blob)

ReferenceReference

Page 14: Windows ✖︎ Docker

複数のリソースを管理する

ロールベースアクセスコントロールをリソースに対して、反映

リソースごとの課金統合

新しい仕組みによって何ができるようになるのか??

RESOURCE GROUP

Page 15: Windows ✖︎ Docker

Dockerイメージを身近に

http://azure.microsoft.com/en-us/documentation/templates/

Page 16: Windows ✖︎ Docker

▪Demo

Azure Resource Manager

Page 17: Windows ✖︎ Docker

マインクラフトサーバーをデプロイ

Page 18: Windows ✖︎ Docker

Azure CLIの導入

 インストーラーを利用する場合  • OS X installer  • Linux installer

 Node がセットアップ済みの環境の場合  $ npm install azure-cli -g

 Docker container の環境に導入する場合 $ In a Docker host, run: docker run -it microsoft/azure-cli

18

https://azure.microsoft.com/ja-jp/documentation/articles/xplat-cli-install/

Page 19: Windows ✖︎ Docker

anakin:~$azure info: _ _____ _ ___ ___ info: /_\ |_ / | | | _ \ __| info: _ ___/ _ \__/ /| |_| | / _|___ _ _ info: (___ /_/ \_\/___|\___/|_|_\___| _____) info: (_______ _ _) _ ______ _)_ _ info: (______________ _ ) (___ _ _) info: info: Microsoft Azure: Microsoft's Cloud Platform info: info: Tool version 0.9.7

まずはログイン → arm にスイッチ

Page 20: Windows ✖︎ Docker

anakin:~$ anakin:~$azure site list error: 'site' is not an azure command. See 'azure help'. anakin:~$azure config mode asm info: New mode is asm anakin:~$azure site list info: Executing command site list + Getting locations + Getting sites data: Name Slot Status Location SKU URL data: ---------- ---- ------- ---------- ---- ---------------------------- data: djangopaas Running Japan East Free djangopaas.azurewebsites.net data: masuke Running East Asia Free masuke.azurewebsites.net info: site list command OK

asm とarm ではコマンドが違う

Page 21: Windows ✖︎ Docker

▪キュバージョンとの切り替え方法 anakin:~$azure config mode asm info: New mode is asm anakin:~$azure config mode arm info: New mode is arm anakin:~$

▪***注意***

ARMモードでのCLI

構造が違う👉ASMで作ったものがARMで見れなかったり、その逆も可能性があります。環境をどちらかに固定しましょう

Page 22: Windows ✖︎ Docker

以上です ありがとうございました!