Last active
October 1, 2018 15:17
-
-
Save stknohg/62cd611534cafd95e70ac47d3a8957b9 to your computer and use it in GitHub Desktop.
Insider previewでのコンテナイメージ取得
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# ref: https://blogs.technet.microsoft.com/virtualization/2018/06/27/insider-preview-windows-container-image/ | |
# | |
# Query the registry for necessary build information | |
$winver = Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\' | |
$versiontag = "$($winver.CurrentMajorVersionNumber).$($winver.CurrentMinorVersionNumber).$($winver.CurrentBuildNumber).$($winver.UBR)" | |
# Run the actual docker pull command to download the insider image matching the host OS | |
docker pull mcr.microsoft.com/windows-insider:$versiontag | |
# server core insider | |
docker pull mcr.microsoft.com/windowsservercore-insider:$versiontag | |
# nano server insider | |
docker pull mcr.microsoft.com/nanoserver-insider:$versiontag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment