Docker SQL Server lab on Docker for Windows hangs

I running the following build of Docker on windows 10:

Version 17.06.2-ce-win27 (13194)
Channel: stable

I’m attempting to run this lab:

When creating the build container build.ps1 hangs on the installation of netfx, which comes from this line in the builder container docker file:

RUN Install-PackageProvider -Name chocolatey -RequiredVersion -Force; Install-Package -Name microsoft-build-tools -RequiredVersion 15.0.26228.0 -Force;
Install-Package -Name netfx-4.5.2-devpack -RequiredVersion 4.5.5165101 -Force

I have run the exact same powershell command on my laptop and it completes within a reasonable amount of time, I’m therefore wondering if the docker daemon is suffering from some resource constraint. The machine I’m using is a mac book pro with Windows 10 installed, 16GB of memory and solid state storage, there appears to be no particular resource being bottleneck at the host level, therefore I’m wondering if there is something I need to do the configuration of the docker daemon.

This is what I get when I let the build of the builder container run to ‘Completion’:

Windows PowerShell
Copyright © 2016 Microsoft Corporation. All rights reserved.

PS C:\WINDOWS\system32> cd …/…
PS C:> cd sql-*
PS C:\sql-server> docker image build --tag dockersamples/assets-db-builder --file Dockerfile.builder .
Sending build context to Docker daemon 122.9kB
Step 1/6 : FROM microsoft/windowsservercore
—> 2cddde20d95d
Step 2/6 : SHELL powershell -Command $ErrorActionPreference = ‘Stop’;
—> Using cache
—> 87c7036aa959
Step 3/6 : RUN Install-PackageProvider -Name chocolatey -RequiredVersion -Force; Install-Package -Name mic
rosoft-build-tools -RequiredVersion 15.0.26228.0 -Force; Install-Package -Name netfx-4.5.2-devpack -RequiredVersion
4.5.5165101 -Force
—> Running in b1dd42d4202b

Name Version Source Summary

chocolatey https://onege… ChocolateyP…
KB2919442 1.0.20160915 chocolatey The update …
KB2919355 1.0.20160915 chocolatey This update…
DotNet4.5.2 chocolatey The Microso…
microsoft-build-tools 15.0.26228.0 chocolatey These Build…
WARNING: "Provider ‘Chocolatey’ is not completing the request in the time
allowed; Canceling request.