Home
%3CLINGO-SUB%20id%3D%22lingo-sub-1058874%22%20slang%3D%22en-US%22%3EMaking%20Windows%20Server%20Core%20Containers%2040%25%20Smaller%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1058874%22%20slang%3D%22en-US%22%3E%3CP%3EWindows%20Server%20Insider%20Preview%20builds%20have%20brought%20an%20exciting%20change%20to%20the%20Windows%20Server%20Core%20Container%20base%20image%20that%20we%E2%80%99d%20like%20to%20share%20with%20you.%26nbsp%3B%3CSTRONG%3EThe%20Server%20Core%20Insider%20container%20base%20image%20download%20size%20is%20over%2040%25%20smaller%20than%20the%201903%20base%20image%2C%20and%20container%20startup%20into%20Windows%20PowerShell%20is%2030%25%20faster!%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%3CSPAN%3EThis%20should%20be%20a%20big%20win%20for%20scaling%20applications%20in%20production%2C%20CI%2FCD%2C%20and%20any%20other%20workflow%20that%20benefits%20from%20faster%20startup%20or%20pulls%20uncached%20images.%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22code-line%22%20data-line%3D%226%22%3EThe%20new%20images%20are%20currently%20available%20on%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore-insider%2F%22%20href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore-insider%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore-insider%2F%22%3Ewindows%2Fservercore%2Finsider%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Erepo%20on%20Docker%20Hub%2C%20and%20will%20land%20on%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore%22%20href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore%22%3Ewindows%2Fservercore%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Erepo%20with%20our%2020H1%20release.%3C%2FP%3E%0A%3CP%20class%3D%22code-line%22%20data-line%3D%226%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22what-changed%22%20class%3D%22code-line%22%20data-line%3D%228%22%20id%3D%22toc-hId--1440231658%22%20id%3D%22toc-hId--1440231658%22%20id%3D%22toc-hId--1440231658%22%3EWhat%20changed%3F%3C%2FH2%3E%0A%3CP%20class%3D%22code-line%22%20data-line%3D%2210%22%3EFor%20performance%20benefits%2C%20Server%20Core%20containers%20have%20always%20included%20a%20set%20of%20.NET%20pre-compiled%20native%20images%20generated%20by%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fframework%2Ftools%2Fngen-exe-native-image-generator%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fframework%2Ftools%2Fngen-exe-native-image-generator%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fframework%2Ftools%2Fngen-exe-native-image-generator%22%3ENative%20Image%20Generator%20tool%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(Ngen.exe)%20to%20improve%20startup%20performance.%20Starting%20with%20our%20Insider%20images%2C%20the%20Server%20Core%20base%20image%20will%20include%20a%20much%20smaller%20set%20of%20NGEN%20images.%3C%2FP%3E%0A%3CP%20class%3D%22code-line%22%20data-line%3D%2212%22%3EA%20larger%20set%20is%20included%20in%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-dotnet-framework-runtime%2F%22%20href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-dotnet-framework-runtime%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-dotnet-framework-runtime%2F%22%3E.NET%20Framework%20runtime%20images%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E(which%20are%20based%20on%20Windows%20Server%20Core)%2C%20however%2C%20the%20.NET%20Framework%20runtime%20images%20are%20also%20much%20smaller%20because%20we%20can%20now%20ensure%20that%20there%20is%20only%20one%20copy%20of%20each%20NGEN%20image.%20Additionally%2C%20The%20NGEN%20images%20in%20the%20.NET%20Framework%20runtime%20image%20are%20now%20more%20intentionally%20selected%20to%20target%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22http%3A%2F%2FASP.NET%22%20href%3D%22http%3A%2F%2Fasp.net%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-href%3D%22http%3A%2F%2FASP.NET%22%3EASP.NET%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20PowerShell%20performance.%20Tests%20have%20shown%20that%20container%20startup%20into%20Windows%20PowerShell%20has%20improved%20by%2045%25%20when%20using%20the%20Insider-based%20.NET%20Framework%20runtime%20image%20compared%20to%20the%201903%20.NET%20Framework%20image.%3C%2FP%3E%0A%3CP%20class%3D%22code-line%20%22%20data-line%3D%2214%22%3EHow%20exactly%20have%20the%20sizes%20changed%20over%20time%3F%20Depends%20on%20what%20you%20measure%20sizes.%20Using%20the%20.NET%20team's%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22https%3A%2F%2Fgist.github.com%2FMichaelSimons%2Ffb588539dcefd9b5fdf45ba04c302db6%22%20href%3D%22https%3A%2F%2Fgist.github.com%2FMichaelSimons%2Ffb588539dcefd9b5fdf45ba04c302db6%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-href%3D%22https%3A%2F%2Fgist.github.com%2FMichaelSimons%2Ffb588539dcefd9b5fdf45ba04c302db6%22%3Emethod%20for%20retrieving%20Docker%20Image%20Sizes%3C%2FA%3E%2C%20here%20is%20how%20the%20latest%20Insider%20image%20compares%20to%20the%20first%20generally%20available%201903%20image%2C%20released%20in%20May%202019%3A%3C%2FP%3E%0A%3CP%20class%3D%22code-line%20%22%20data-line%3D%2214%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CTABLE%20style%3D%22width%3A%2060%25%3B%20border-collapse%3A%20collapse%3B%22%20border%3D%221%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%22%3E%26nbsp%3B%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%22%3E%3CSTRONG%3E1903%20GA%3C%2FSTRONG%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%22%3E%3CSTRONG%3E20H1%3C%2FSTRONG%3E%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%22%3E%3CSTRONG%3E%25%CE%94%3C%2FSTRONG%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%22%3EDownload%20Size%20(GB)%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%22%3E1.92%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%22%3E1.13%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%22%3E-41%25%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%22%3ESize%20on%20Disk%20(GB)%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%22%3E4.63%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%22%3E2.63%3C%2FTD%3E%0A%3CTD%20style%3D%22width%3A%2025%25%3B%22%3E-43%25%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%20class%3D%22code-line%20%20%22%20data-line%3D%2221%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20class%3D%22code-line%20%20%22%20data-line%3D%2221%22%3ENote%20that%20running%20%3CSTRONG%3Edocker%20pull%3C%2FSTRONG%3E%20on%20the%20latest%20Insider%20image%20at%20the%20time%20of%20writing%20(Insider%20Build%2019023)%20will%20display%20a%20download%20size%20of%201.22.%20This%20is%20because%20Docker's%20method%20for%20calculating%20differs%20slightly%20from%20the%20method%20linked%20above.%3C%2FP%3E%0A%3CP%20class%3D%22code-line%20%20%22%20data-line%3D%2221%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CBLOCKQUOTE%20class%3D%22code-line%20%22%20data-line%3D%2223%22%3E%0A%3CP%20class%3D%22code-line%22%20data-line%3D%2223%22%3EImage%20sizes%20fluctuate%20month-to-month%20as%20they%20receive%20monthly%20servicing%20updates.%20The%20results%20of%20the%20metrics%20referenced%20in%20this%20and%20other%20related%20blogs%20will%20fluctuate%20accordingly.%20Note%20that%20the%20size%20of%201903%20used%20as%20a%20benchmark%20in%20the%20related%20blogs%20below%20are%20based%20on%20a%20a%20more%20recent%20version%20of%201903%2C%20one%20that%20has%20been%20serviced%20with%20several%20monthly%20patches%20that%20each%20cause%20size%20increases.%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%20class%3D%22code-line%22%20data-line%3D%2225%22%3E%3CSTRONG%3ECheck%20out%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fdotnet%2Fwe-made-windows-server-core-container-images-40-smaller%2F%22%20href%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fdotnet%2Fwe-made-windows-server-core-container-images-40-smaller%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-href%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fdotnet%2Fwe-made-windows-server-core-container-images-40-smaller%2F%22%3E.NET%20Blog%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efor%20a%20deeper%20dive%20into%20these%20changes%2C%20and%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fpowershell%2F%3Fp%3D18135%26amp%3Bpreview%3D1%26amp%3B_ppp%3D46b0526056%22%20href%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fpowershell%2F%3Fp%3D18135%26amp%3Bpreview%3D1%26amp%3B_ppp%3D46b0526056%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-href%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fpowershell%2F%3Fp%3D18135%26amp%3Bpreview%3D1%26amp%3B_ppp%3D46b0526056%22%3EPowerShell%20Blog%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Efor%20PowerShell-centric%20guidance.%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%20class%3D%22code-line%22%20data-line%3D%2225%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22what-does-this-mean%22%20class%3D%22code-line%22%20data-line%3D%2227%22%20id%3D%22toc-hId-1047281175%22%20id%3D%22toc-hId-1047281175%22%20id%3D%22toc-hId-1047281175%22%3EWhat%20does%20this%20mean%3F%3C%2FH2%3E%0A%3CP%20class%3D%22code-line%22%20data-line%3D%2229%22%3ETwo%20things%20to%20keep%20in%20mind%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%20class%3D%22code-line%22%20data-line%3D%2230%22%3EThese%20changes%20will%20remain%20available%20for%20preview%20to%20registered%20Insiders%20on%20all%20current%20and%20upcoming%20builds%20featured%20on%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore-insider%22%20href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore-insider%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore-insider%22%3Ewindows%2Fservercore%2Finsider%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Erepo%2C%20and%20are%20expected%20to%20be%20Generally%20Available%20in%20the%2020H1%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore%22%20href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore-insider%22%3Ewindows%2Fservercore%3C%2FA%3E%20release%20in%202020%3C%2FLI%3E%0A%3CLI%20class%3D%22code-line%22%20data-line%3D%2231%22%3EGoing%20forward%2C%20container%20images%20that%20make%20significant%20use%20of%20.NET%20Framework%20or%20Windows%20PowerShell%20should%20be%20built%20on%20top%20of%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-dotnet-framework-runtime%2F%22%20href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-dotnet-framework-runtime%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-dotnet-framework-runtime%2F%22%3Edotnet%2Fframework%2Fruntime%26nbsp%3B%3C%2FA%3Econtainer%20images%2C%20which%20will%20include%20additional%20.NET%20pre-compiled%20native%20images%20to%20maintain%20performance%20for%20those%20scenarios.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CBLOCKQUOTE%20class%3D%22code-line%22%20data-line%3D%2233%22%3E%0A%3CP%20class%3D%22code-line%22%20data-line%3D%2233%22%3ENote%20that%20while%20tests%20show%20that%20container%20startup%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Einto%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EWindows%20PowerShell%20is%2030%25%20faster%20when%20using%20the%20Insider%20Server%20Core%20image%20when%20compared%20to%201903%2C%20Windows%20PowerShell%20startup%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Ewithin%3C%2FEM%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ea%20running%20container%20is%20100ms%20(15%25)%20slower%20for%20the%20Insider%20image%20and%2020ms%20(15%25)%20slower%20on%20the%20Insider-based%20.NET%20Framework%20runtime%20image%2C%20when%20compared%20to%20their%20respective%201903%20equivalents.%3C%2FP%3E%0A%3C%2FBLOCKQUOTE%3E%0A%3CP%20class%3D%22code-line%22%20data-line%3D%2235%22%3EWe%E2%80%99d%20love%20for%20you%20to%20test%20out%20the%20smaller%20Server%20Core%20image%20today%20on%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore-insider%22%20href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore-insider%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-href%3D%22https%3A%2F%2Fhub.docker.com%2F_%2Fmicrosoft-windows-servercore-insider%22%3Ewindows%2Fservercore%2Finsider%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20give%20us%20your%20feedback!%20Also%2C%20remember%20to%20check%20out%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20title%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fdotnet%2Fwe-made-windows-server-core-container-images-40-smaller%2F%22%20href%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fdotnet%2Fwe-made-windows-server-core-container-images-40-smaller%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-href%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fdotnet%2Fwe-made-windows-server-core-container-images-40-smaller%2F%22%3E.NET%20blog%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20look%20out%20for%20corresponding%20.NET%20Framework%20images%20when%2020H1%20Windows%20Server%20Core%20containers%20are%20Generally%20Available.%3C%2FP%3E%0A%3CP%20class%3D%22code-line%22%20data-line%3D%2235%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22related-blogs%22%20class%3D%22code-line%22%20data-line%3D%2237%22%20id%3D%22toc-hId--760173288%22%20id%3D%22toc-hId--760173288%22%20id%3D%22toc-hId--760173288%22%3ERelated%20Blogs%3C%2FH2%3E%0A%3CUL%3E%0A%3CLI%20class%3D%22code-line%22%20data-line%3D%2238%22%3E%3CA%20title%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fdotnet%2Fwe-made-windows-server-core-container-images-40-smaller%2F%22%20href%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fdotnet%2Fwe-made-windows-server-core-container-images-40-smaller%2F%22%20target%3D%22_self%22%20data-href%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fdotnet%2Fwe-made-windows-server-core-container-images-40-smaller%2F%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3E.NET%20Blog%3A%20We%20made%20Windows%20Server%20Core%20container%20images%20%26gt%3B40%25%20smaller%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%20class%3D%22code-line%22%20data-line%3D%2239%22%3E%3CA%20title%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fpowershell%2F%3Fp%3D18135%26amp%3Bpreview%3D1%26amp%3B_ppp%3D46b0526056%22%20href%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fpowershell%2F%3Fp%3D18135%26amp%3Bpreview%3D1%26amp%3B_ppp%3D46b0526056%22%20target%3D%22_self%22%20data-href%3D%22https%3A%2F%2Fdevblogs.microsoft.com%2Fpowershell%2F%3Fp%3D18135%26amp%3Bpreview%3D1%26amp%3B_ppp%3D46b0526056%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPowerShell%20Blog%3A%20Improvements%20in%20Windows%20PowerShell%20Container%20Images%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%20class%3D%22code-line%20%22%20data-line%3D%2240%22%3E%3CA%20title%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FContainers%2FA-smaller-Windows-Server-Core-Container-with-better-Application%2Fba-p%2F382412%22%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FContainers%2FA-smaller-Windows-Server-Core-Container-with-better-Application%2Fba-p%2F382412%22%20target%3D%22_blank%22%20rel%3D%22noopener%22%20data-href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FContainers%2FA-smaller-Windows-Server-Core-Container-with-better-Application%2Fba-p%2F382412%22%3EA%20smaller%20Windows%20Server%20Core%20Container%20with%20better%20Application%20Compatibility%20(published%20January%202018)%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1058874%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20Server%20Core%20Insider%20container%20base%20image%20download%20size%20is%20over%2040%25%20smaller%20then%20the%201903%20base%20image!%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1059563%22%20slang%3D%22en-US%22%3ERe%3A%20Making%20Windows%20Server%20Core%20Containers%2040%25%20Smaller%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1059563%22%20slang%3D%22en-US%22%3E%3CP%3EAwesome%20work%26nbsp%3B%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Fcool_40x40.gif%22%20alt%3D%22%3Acool%3A%22%20title%3D%22%3Acool%3A%22%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

Windows Server Insider Preview builds have brought an exciting change to the Windows Server Core Container base image that we’d like to share with you. The Server Core Insider container base image download size is over 40% smaller than the 1903 base image, and container startup into Windows PowerShell is 30% faster!

 

This should be a big win for scaling applications in production, CI/CD, and any other workflow that benefits from faster startup or pulls uncached images.

 

The new images are currently available on the windows/servercore/insider repo on Docker Hub, and will land on the windows/servercore repo with our 20H1 release.

 

What changed?

For performance benefits, Server Core containers have always included a set of .NET pre-compiled native images generated by the Native Image Generator tool (Ngen.exe) to improve startup performance. Starting with our Insider images, the Server Core base image will include a much smaller set of NGEN images.

A larger set is included in .NET Framework runtime images (which are based on Windows Server Core), however, the .NET Framework runtime images are also much smaller because we can now ensure that there is only one copy of each NGEN image. Additionally, The NGEN images in the .NET Framework runtime image are now more intentionally selected to target ASP.NET and PowerShell performance. Tests have shown that container startup into Windows PowerShell has improved by 45% when using the Insider-based .NET Framework runtime image compared to the 1903 .NET Framework image.

How exactly have the sizes changed over time? Depends on what you measure sizes. Using the .NET team's method for retrieving Docker Image Sizes, here is how the latest Insider image compares to the first generally available 1903 image, released in May 2019:

 

  1903 GA 20H1
Download Size (GB) 1.92 1.13 -41%
Size on Disk (GB) 4.63 2.63 -43%

 

Note that running docker pull on the latest Insider image at the time of writing (Insider Build 19023) will display a download size of 1.22. This is because Docker's method for calculating differs slightly from the method linked above.

 

Image sizes fluctuate month-to-month as they receive monthly servicing updates. The results of the metrics referenced in this and other related blogs will fluctuate accordingly. Note that the size of 1903 used as a benchmark in the related blogs below are based on a a more recent version of 1903, one that has been serviced with several monthly patches that each cause size increases.

Check out the .NET Blog for a deeper dive into these changes, and the PowerShell Blog for PowerShell-centric guidance.

 

What does this mean?

Two things to keep in mind:

  • These changes will remain available for preview to registered Insiders on all current and upcoming builds featured on the windows/servercore/insider repo, and are expected to be Generally Available in the 20H1 windows/servercore release in 2020
  • Going forward, container images that make significant use of .NET Framework or Windows PowerShell should be built on top of the dotnet/framework/runtime container images, which will include additional .NET pre-compiled native images to maintain performance for those scenarios.

Note that while tests show that container startup into Windows PowerShell is 30% faster when using the Insider Server Core image when compared to 1903, Windows PowerShell startup within a running container is 100ms (15%) slower for the Insider image and 20ms (15%) slower on the Insider-based .NET Framework runtime image, when compared to their respective 1903 equivalents.

We’d love for you to test out the smaller Server Core image today on windows/servercore/insider and give us your feedback! Also, remember to check out the .NET blog and look out for corresponding .NET Framework images when 20H1 Windows Server Core containers are Generally Available.

 

1 Comment

Awesome work :cool: