-
Notifications
You must be signed in to change notification settings - Fork 263
Closed
Labels
Description
PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!
Describe the issue
Encountering error:
Docker Build failed with exit code -1
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.14\ContainerHandling\New-NavIm
age.ps1:557 char:25
+ ... throw "Docker Build failed with exit code $LastExitCode"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Docker Build failed with exit code -1:String) []
, RuntimeException
+ FullyQualifiedErrorId : Docker Build failed with exit code -1
Scripts used to create container and cause the issue
$contName = 'bc18Sandbox'
$type = 'Sandbox'
$version = '18'
$select = 'Latest'
$country = 'w1'
Remove-NavContainer $contName
Measure-Command {
$artifactUrl = Get-BCArtifactUrl -version $version -select $select -country $country -type $type
$credential = New-Object pscredential 'UserName', (ConvertTo-SecureString -String 'MyPasswordHere' -AsPlainText -Force)
New-NavContainer `
-accept_eula `
-containerName $contName `
-artifactUrl $artifactUrl `
-Credential $credential `
-auth UserPassword `
-updateHosts `
-imagename myown `
-licenseFile 'd:\BC\License18.flf' `
-accept_outdated `
-assignPremiumPlan `
-includeAL `
-memoryLimit 4G
}
Full output of scripts
BcContainerHelper is version 2.0.14
BcContainerHelper is running as administrator
Host is Майкрософт Windows 10 Pro - 21H1
Docker Client Version is 20.10.7
Docker Server Version is 20.10.7
Fetching all docker images
Fetching all docker volumes
ArtifactUrl and ImageName specified
INFO: Windows 10 21H1 images are not yet available, use 2004 as these are found to work better than
20H2 on 21H1
WARNING: Unable to find matching generic image for your host OS. Using mcr.microsoft.com/businessce
ntral:10.0.19041.1083
Building multitenant image myown:sandbox-18.3.27240.27916-w1-mt based on mcr.microsoft.com/business
central:10.0.19041.1083 with https://bcartifacts.azureedge.net/sandbox/18.3.27240.27916/w1
Pulling latest image mcr.microsoft.com/businesscentral:10.0.19041.1083
10.0.19041.1083: Pulling from businesscentral
Digest: sha256:2cbaaad0b3abcc2dd2b77c150774a008e141d1f8bd76384aaa510677b154ce4e
Status: Image is up to date for mcr.microsoft.com/businesscentral:10.0.19041.1083
mcr.microsoft.com/businesscentral:10.0.19041.1083
Generic Tag: 1.0.1.7
Container OS Version: 10.0.19041.1083 (2004)
Host OS Version: 10.0.19043.1110 (21H1)
WARNING: Host OS and Base Image Container OS doesn't match and Hyper-V is not installed. If you enc
ounter issues, you could try to install Hyper-V.
Using process isolation
Using license file d:\BC\License18.flf
Files in c:\bcartifacts.cache\nfykh5pr.arl\my:
Copying Platform Artifacts
Copying Database
Copying Licensefile
Copying Extensions
c:\bcartifacts.cache\nfykh5pr.arl
Sending build context to Docker daemon 1.66GB
Step 1/6 : FROM mcr.microsoft.com/businesscentral:10.0.19041.1083
---> 81672670ff79
Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox
=Y artifactUrl=https://bcartifacts.azureedge.net/sandbox/18.3.27240.27916/w1 filesOnly=False
---> Using cache
---> 9b2c652cfe71
Step 3/6 : COPY my /run/
---> Using cache
---> 1c25f565165a
Step 4/6 : COPY NAVDVD /NAVDVD/
---> 63e35dca3da6
Step 5/6 : RUN \Run\start.ps1 -installOnly -multitenant
---> Running in 4e12516108bc
Docker Build failed with exit code -1
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.14\ContainerHandling\New-NavImage.ps1:557 char:
25
+ ... throw "Docker Build failed with exit code $LastExitCode"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Docker Build failed with exit code -1:String) [], RuntimeExceptio
n
+ FullyQualifiedErrorId : Docker Build failed with exit code -1
Screenshots
Additional context
it happens every time.
on two different computers, where I have changed default Docker images path according this instruction: https://blog.frankfu.com.au/2018/03/09/change-dockers-default-storage-directory-for-images/
sc stop docker
cd "C:\Program Files\Docker\Docker\Resources"
.\dockerd.exe --unregister-service
.\dockerd.exe --register-service --data-root "D:\BC\docker"
sc start docker
docker info
Also, have changed default BCContainerHelper folder with c:\ProgramData\BCContainerHelper\BcContainerHelper.config.json:
{
"hostHelperFolder": "d:\\BC\\containerhelper",
"containerHelperFolder": "d:\\BC\\bccontainerhelper"
}
This PC has Windows 10 Pro, 16GB RAM, disk d: is hdd 1TB
Reactions are currently unavailable