ãã¾ã Windows Server Insider Preview ã«é¢ãã¦ã¯èå³ããªãã£ãã®ã§ããããã¾ãã¾è¦ã¤ãã Insider çã® Windows Server Core 㨠Nano Server ã® Docker Image ãããªãæé©åããã¦ããã®ã§ãå®éã«è©¦ãã¦ã¿ãããªãã¾ãããå°å³ã«ã¯ã¾ãã¾ãããä½ã¨ãåããã¨ããè¦å´è©±ã§ãã
ææã¡ã® Hyper-V ãå ¥ãã¦ãã Windows Server 2016 ã« Insider Preview ãå ¥ãã¾ããã
ãã¦ã³ãã¼ãã«ã¯ Insider Preview ã¸ã®åå ãå¿ è¦ã§ãããWindows 10 ã§åå ãã¦ããã° OK ã§ãã
Server Core çã®ã¿æä¾ããã¦ããã®ã§ãã¤ã³ã¹ãã¼ã«ã¤ã¡ã¼ã¸ã¯ 2GB ã¡ãããªã®ã§å°ããã§ããã
Download Windows Server Insider Preview
æå㯠Azure ä¸ã«ä½ãããã¨æãã¾ããããã¶ã¡ãã RD ããé£ãããã¨è¨ãããã®ã§æ¢ãã¾ãããå°æ¥çã«ã¯ Azure 㧠Insider Preview ã®ã¤ã¡ã¼ã¸ãæä¾ãããæ°ããã¾ãã
Windows Server Insider Preview ãç¨æ
ã¨ãããã Hyper-V ã使ã£ã¦ããµã¯ã㨠Insider Preview ãã¤ã³ã¹ãã¼ã«ãã¾ããã³ã³ãããå®è¡ããã®ã§ã¡ã¢ãªã ãã¯å°ãå¤ãã«ç¢ºä¿ããæ¹ãè¯ãæ°ããã¾ããã
Server Core ã®åæã»ããã¢ããåãã¦ã§ããããåºæ¬ã¯ãã¹ã¯ã¼ãå ¥ããã ãã§ãã
Insideer Preview èªä½ã¯ããã«å ¥ãã®ã§ããããã®å¾ã® Docker ã¤ã³ã¹ãã¼ã«ã§å¤§ããèºãã¾ãããããã«ç´ãæ°ããã¾ãããã²ã¨ã¾ãã¯åé¿æ³ã次ã§ç´¹ä»ãã¦ããã¾ãã
Docker ãã¤ã³ã¹ãã¼ã«
Docs ã« Insider Container ã使ãæ¹æ³ãæ¸ãã¦ããã®ã§ãåºæ¬ã¯ãã®éãã«ã³ãã³ããæã¡è¾¼ãã°ããã¯ããªã®ã§ãããä½æ ãä¸æãããã¾ããã§ããã
Using Insider Container Images | Microsoft Docs
Docker ããã¦ã³ãã¼ãããå¾ã®ããã·ã¥ãã§ãã¯ãéãã¾ããã§ããã
Provider ã®ã³ã¼ããèªãã¨ãæ¢ã«ãã¡ã¤ã«ãããå ´åã«ã¯ãã¦ã³ãã¼ããã¹ãããããããã«ãªã£ã¦ããã®ã§ãäºåã«ãã¦ã³ãã¼ããã¦ããã¾ããããã¹ã¯ã¦ã¼ã¶ã¼ã«ãã£ã¦ç°ãªãã¨æãã¾ãã
Invoke-WebRequest https://dockermsft.blob.core.windows.net/dockercontainer/docker-17-06-0-ce.zip -OutFile C:\Users\ADMINI~1\AppData\Local\Temp\1\DockerMsftProviderInsider\Docker-17-06-0-ce.zip
ãã®å¾ã«å度ã¤ã³ã¹ãã¼ã«ãå®è¡ããã¨ä¸æãããã¾ãããæ¬å½ã«è¬ã§ãã
åèµ·åãã㨠dockerd ãç«ã¡ä¸ããã®ã§ãå®éã«ã³ãã³ãã使ããããã«ãªãã¾ããã¨ã©ã¼ã§ãµã¼ãã¹ãç«ã¡ä¸ãããªãã£ãæã«ã¯ãããä¸åº¦åèµ·åããã¨ä¸æããããã¨ãããã¿ããã§ãã
Insider Image ã試ãã¦ã¿ã
Docker ã®ã¤ã³ã¹ãã¼ã«ã«é常ã«æéã¨æéãããã¦ãã¾ãã¾ããããããã§ãããã Insider Preview 㪠Image ã試ããã¨ãåºæ¥ã¾ããå ¬éããã¦ãããã¼ã¹ã¤ã¡ã¼ã¸ã¯ä»¥ä¸ã®éãã
https://hub.docker.com/r/microsoft/windowsservercore-insider/
https://hub.docker.com/r/microsoft/nanoserver-insider/
ä»ã«ã .NET Core 2.0 ã PowerShell ãå ¥ã£ã¦ãããã®ã¯ããã¾ãã
大ããªç¹å¾´ã¨ãã¦ãã¤ã¡ã¼ã¸ãµã¤ãºã両æ¹ã¨ãåå以ä¸ã«ãªã£ã¦ãã¾ããã¦ã£ããã³ã³ããã«æé©åãããã®ã¯ Nano Server ã ããã¨æã£ã¦ã¾ããããServer Core ãæé©åããã¾ããã
ããã¾ã§ã® Windows Server Core 㨠Nano Server ã®ãµã¤ãºã¯ä»¥ä¸ã®éãã§ãã
å±éå¾ã®ãµã¤ãºã§ Nano Server ã 200MB ãåã£ã¦ããã®ã¯å²ã¨é å¼µã£ãã»ãã ã¨æãã¾ããServer Core ã¯ã¾ã ã¾ã 大ããã§ãããããã§ã .NET Framework ã®å®è¡ç°å¢ã¨ãã¦æ±ãããããªãã¾ããã
å½ç¶ãªãã Windows Server Containers ã§ãããªãã¨åä½ãã¾ãã
èµ·åæéã®ç縮ã¨ãã¯ãªãããã§ããããµã¤ãºãå°ãããªã£ãã®ã¯é常ã«å¬ããã§ãã
Server Core Insider ã« IIS ãå ¥ãã
Windows Containers ã使ã£ã¦ãããããã¨ã¯ ASP.NET ã¢ããªã±ã¼ã·ã§ã³ã® Dockernize ãªã®ã§ãæä½ã§ã IIS ãå ¥ãã¦åããã¦ãããã¨ã«ãã¾ãã
IIS ã ASP.NET ã® Dockerfile 㯠GitHub ã«å ¬éããã¦ãã®ã§ãFROM ãè²·ããã ãã§ä½¿ãã¾ãã
GitHub ãããªãã¸ããªãè½ã¨ãã¦ãã¦ãDockerfile ã以ä¸ã®ããã«æ¸ãæãã¦ãã«ããã㨠IIS ãã¤ã³ã¹ãã¼ã«ããã Server Core Insider ã® Docker Image ãå®æãã¾ãã
FROM microsoft/windowsservercore-insider RUN powershell -Command Add-WindowsFeature Web-Server ADD ServiceMonitor.exe /ServiceMonitor.exe EXPOSE 80 ENTRYPOINT ["C:\\ServiceMonitor.exe", "w3svc"]
Dockerfile ã ãã§ã¯ãªã ServiceMonitor ãå¿ è¦ãªã®ã§å°ã注æãå¿ è¦ã§ãã
ãã«ãããã¤ã¡ã¼ã¸ãèµ·åããã¨ãå½ããåã§ãã IIS ã«ã¢ã¯ã»ã¹ã§ããããã«ãªãã¾ããç¹çãã¹ããã¨ã¯ããã¾ããã§ããããå½ããåã«åä½ããã¨ããã®ã¯éè¦ãªãã¤ã³ãããªã¨ã
Windows Containers ãéç¨ããä¸ã§å¤§å¤ãªã®ã¯ Docker Image ã®ãµã¤ãºã¨ã³ã³ãããã¹ãã¨ã®ãã¼ã¸ã§ã³ãã¹ãããã®äºã¤ã ã£ãã®ã§ã次ã®ãªãªã¼ã¹ã§ã¤ã¡ã¼ã¸ã®ãµã¤ãºã«é¢ãã¦ã¯è§£æ¶ããããã§ãã
ã³ã³ãããã¹ãã¨ã®ãã¼ã¸ã§ã³ãã¹ãããã«é¢ãã¦ã¯ Hyper-V Containers ã使ãã Dv3 / Ev3 ã§ååã¯è§£æ¶ãããã¨æã£ã¦ã¾ããå¾ã¯ Kubernetes å´ã§ isolation ãé¸ã¹ãããã«ãªãã°è¯ãã§ããã