I'm at this stage of the guide whereby I'm required to build a solution from custom-images directory.

After running docker-compose build solution from the directory, it throws the below error at step 3.

enter image description here

My Dockerfile is as follows...

# escape=`


SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 

# Gather only artifacts necessary for NuGet restore, retaining directory structure
COPY *.sln nuget.config Directory.Build.targets Packages.props \nuget\
COPY src\ \temp\
RUN Invoke-Expression 'robocopy C:\temp C:\nuget\src /s /ndl /njh /njs *.csproj *.scproj 



SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 

# Create an empty working directory
WORKDIR C:\build

# Copy prepped NuGet artifacts, and restore as distinct layer to take better advantage 
of caching
COPY --from=prep .\nuget .\
RUN nuget restore

# Copy remaining source code
COPY src\ .\src\

# Copy transforms, retaining directory structure
RUN Invoke-Expression 'robocopy C:\build\src C:\out\transforms /s /ndl /njh /njs *.xdt'

# Build website with file publish
RUN msbuild .\src\DockerExamples.Website\DockerExamples.Website.csproj 
/p:Configuration=$env:BUILD_CONFIGURATION /p:DeployOnBuild=True 
/p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem 

# Build XConnect with file publish
RUN msbuild .\src\DockerExamples.XConnect\DockerExamples.XConnect.csproj 
/p:Configuration=$env:BUILD_CONFIGURATION /p:DeployOnBuild=True 
/p:DeployDefaultTarget=WebPublish /p:WebPublishMethod=FileSystem 


WORKDIR C:\artifacts

# Copy final build artifacts
COPY --from=builder C:\out\website .\website\
COPY --from=builder C:\out\transforms .\transforms\
COPY --from=builder C:\out\xconnect .\xconnect\

1 Answer 1


That is the know the problem caused if outdated network storage drivers.

Take a look here: https://github.com/microsoft/hcsshim/issues/624

Try to install fresh SFTP Drive V2 drivers or uninstall Box, One Drive or any other network drive you have installed on your system and try again (after restarting PC).

  • interesting, thanks will update and report back
    – Sean T
    Commented Sep 15, 2021 at 10:53
  • Removed one drive, don't have box. Also checked that thread and the problem driver is not present on my system. Very frustrating
    – Sean T
    Commented Sep 15, 2021 at 13:26
  • @SeanT All windows updates installed? Commented Sep 16, 2021 at 7:05
  • I'm on windows version 20H2, build 19042.1165. I work for a university so all the pc's have managed os's unfortunately - we are likely slightly behind. I think you are right though hcsshim is a windows lib.
    – Sean T
    Commented Sep 16, 2021 at 11:00
  • Did you try to install new SFTP Drive V2 drivers? Commented Sep 16, 2021 at 12:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.