Skip to content

Instantly share code, notes, and snippets.

@stknohg
Last active October 1, 2018 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stknohg/62cd611534cafd95e70ac47d3a8957b9 to your computer and use it in GitHub Desktop.
Save stknohg/62cd611534cafd95e70ac47d3a8957b9 to your computer and use it in GitHub Desktop.
Insider previewでのコンテナイメージ取得
#
# 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