Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.