Code Monkey home page Code Monkey logo

Comments (1)

nick-webbgh avatar nick-webbgh commented on June 27, 2024

I'm also getting this error using the powershell script below. Any help would be greatly appreciated. I've tried removing all containers, uninstalling and re-installing Docker Desktop.

$containerName = 'bcnwtest004' $password = 'P@ssw0rd' $securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force $credential = New-Object pscredential 'admin', $securePassword $auth = 'UserPassword' $artifactUrl = Get-BcArtifactUrl -type 'Sandbox' -country 'gb' -select 'Latest' New-BcContainer
-accept_eula -containerName $containerName
-credential $credential -auth $auth
-artifactUrl $artifactUrl -imageName 'bcnwtest004img'
-memoryLimit 8G -updateHosts
Here's the script output:

BcContainerHelper is version 6.0.0
BcContainerHelper is running as administrator
HyperV is Enabled
UsePsSession is True
Host is Microsoft Windows 11 Pro - 10.0.22631.3296
Docker Client Version is 25.0.3
Docker Server Version is 25.0.3
Removing Desktop shortcuts
Fetching all docker images
Fetching all docker volumes
ArtifactUrl and ImageName specified
WARNING: Unable to find matching generic image for your host OS. Using mcr.microsoft.com/businesscentral:10.0.20348.2340
Fetching all docker images
Building multitenant image bcnwtest004img:sandbox-23.5.16502.17828-gb-mt based on mcr.microsoft.com/businesscentral:10.0.20348.2340 with https://bcartifac
ts.azureedge.net/sandbox/23.5.16502.17828/gb
Pulling latest image mcr.microsoft.com/businesscentral:10.0.20348.2340
10.0.20348.2340: Pulling from businesscentral
7c76e5cf7755: Already exists
a61557bf6642: Already exists
4e27dceaede8: Already exists
4ed1ee36e917: Already exists
4e3161feeb34: Already exists
4a87fb828d64: Already exists
cea67d57f3f9: Already exists
38b4ae346056: Already exists
a778e25f053d: Already exists
32229c882b1e: Already exists
02e64a21450c: Already exists
aa49fedb3e4f: Already exists
0ae32a5a2c8d: Already exists
Digest: sha256:7473a1ca0616569f43a7b5e14add41f0a5fa8b4b5077abe86c5e4ade1af40d51
Status: Downloaded newer image for mcr.microsoft.com/businesscentral:10.0.20348.2340
mcr.microsoft.com/businesscentral:10.0.20348.2340
Generic Tag: 1.0.2.17
Container OS Version: 10.0.20348.2340 (ltsc2022)
Host OS Version: 10.0.22631.3296 (Unknown/Insider build)
Using hyperv isolation
Files in c:\bcartifacts.cache\c32c41ui.ikq\my:
Copying Platform Artifacts
c:\bcartifacts.cache\sandbox\23.5.16502.17828\platform
Copying Database
Copying Licensefile
Copying ConfigurationPackages
C:\bcartifacts.cache\sandbox\23.5.16502.17828\gb\ConfigurationPackages
Copying Extensions
C:\bcartifacts.cache\sandbox\23.5.16502.17828\gb\Extensions
Copying Applications.GB
C:\bcartifacts.cache\sandbox\23.5.16502.17828\gb\Applications.GB
c:\bcartifacts.cache\c32c41ui.ikq
Sending build context to Docker daemon 2.571GB

Step 1/6 : FROM mcr.microsoft.com/businesscentral:10.0.20348.2340
---> c4cd601a3c1b
Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcartifacts.azureedge.net/sandbo
x/23.5.16502.17828/gb filesOnly=False
---> Running in d5030fcc2b87
New-Bcimage Telemetry Correlation Id: 3de8646c-5061-4028-8279-85131418d96d
New-BcContainer Telemetry Correlation Id: 8c0459ae-1c1c-43c7-beb7-6c5531617284
DockerDo : hcsshim::PrepareLayer failed in Win32: The system cannot find the path specified. (0x3)
ExitCode: 1
Commandline: docker build --isolation=hyperv --memory 8G --no-cache --tag bcnwtest004img:sandbox-23.5.16502.17828-gb-mt c:\bcartifacts.cache\c32c41ui.ikq
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.0\ContainerHandling\New-NavImage.ps1:694 char:27

  • ... if (!(DockerDo -command build -parameters @("--isolation=$isola ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DockerDo

from hcsshim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.