Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-Bccontainerhelper error on docker (chocolatey) #3800

Open
IgorPayPoint opened this issue Jan 10, 2025 · 2 comments
Open

New-Bccontainerhelper error on docker (chocolatey) #3800

IgorPayPoint opened this issue Jan 10, 2025 · 2 comments
Assignees

Comments

@IgorPayPoint
Copy link

IgorPayPoint commented Jan 10, 2025

As docker desktop requires a licence the only way to use this is using docker or chocolatey docker. however the BCC container helper seems to fail.
I'm trying to install all this on a virtual machine, windows 11 pro.
This links to the same reported issue:
#3150

Another thing I'd like to report is when you install chocolatey it seems to fail (dockerd not found or not windows containers error), you need to reboot windows or go to programfiles\docker\ and run .\dockerd.exe?

Scripts used to create container and cause the issue
$containerName = 'bcdev'
$password = 'mypassword'
$securePassword = ConvertTo-SecureString -String $password -AsPlainText -Force
$credential = New-Object pscredential 'admin', $securePassword
$auth = 'UserPassword'
$artifactUrl = Get-BcArtifactUrl -type 'OnPrem' -version '23.5.16502.16757' -country 'gb' -select 'Closest'

New-BcContainer -accept_eula
-containerName $containerName -credential $credential
-auth $auth -artifactUrl $artifactUrl
-vsixFile (Get-LatestAlLanguageExtensionUrl) `
-updateHosts

Full output of scripts
DockerDo : docker: Error response from daemon: hcs::CreateComputeSystem
adcd085bcbb06395ca07497fcbdbb3ee048299806887f646cc477a7f62e94591: The request is not supported.
ExitCode: 125
Commandline: docker run --volume "c:\bcartifacts.cache:c:\dl" --label nav= --env isBcSandbox=N --label
version=23.5.16502.16757 --label platform=23.0.16746.0 --label country=gb --env
artifactUrl=https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/onprem/23.5.16502.16757/gb --env
licenseFile="" --name bcdev --hostname bcdev --env auth=NavUserPassword --env username="admin" --env
ExitOnError=N --env locale=en-GB --env databaseServer="" --env databaseInstance="" --volume
"C:\ProgramData\BcContainerHelper:C:\ProgramData\BcContainerHelper" --volume
"C:\ProgramData\BcContainerHelper\Extensions\bcdev\my:C:\Run\my" --isolation hyperv --restart
unless-stopped --env filesOnly=False --memory 8G --env enableApiServices=Y --env useSSL=N --env securePass
word=76492d1116743f0423413b16050a5345MgB8ADYAYgB2AHcAZgAyAHkAQwBOAEsAQQBnAG8AVQBvADYAdAA3AHQAUQAvAEEAPQA9A
HwANgBkADQANAAyAGQANwAzADgAZgBkADAAOQAzAGUAZQBhADAANwA4AGUANQA5ADEAZgAyADUANgBkADQANwBlADUAZABhADAAOABhAGU
ANgA1ADIANgA3AGEANwAxADQAMABjAGYANgAzADEAZQBkAGUAMAAxAGYAMgA2ADUANAA= --env
passwordKeyFile="c:\run\my\aes.key" --env removePasswordKeyFile=Y --env accept_eula=Y --env
accept_outdated=Y --detach mcr.microsoft.com/businesscentral:ltsc2022
At C:\Program
Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.30\ContainerHandling\New-NavContainer.ps1:1862
char:15

  • ... if (!(DockerDo -accept_eula -accept_outdated:$accept_outdated - ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DockerDo

docker info command output
Client:
Version: 27.4.1
Context: default
Debug Mode: false

Server:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 1
Server Version: 27.4.1
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics internal l2bridge l2tunnel nat null overlay private transparent
Log: awslogs etwlogs fluentd gcplogs gelf json-file local splunk syslog
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 26100 (26100.1.amd64fre.ge_release.240331-1435)
Operating System: Microsoft Windows Version 24H2 (OS Build 26100.2605)
OSType: windows
Architecture: x86_64
CPUs: 6
Total Memory: 3.727GiB
Name: TESTVM
ID: e3827f25-22c7-4c3f-8bd1-4e5ec82500fd
Docker Root Dir: C:\ProgramData\docker
Debug Mode: false
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Product License: Community Engine

@thomasguldstrand
Copy link

thomasguldstrand commented Jan 14, 2025

I had a similar issue on a fresh pc with docker engine installed. For me it helped running this command:

choco install Containers Microsoft-Hyper-V --source windowsfeatures

My error message for info:

DockerDo : docker: Error response from daemon: hcs::CreateComputeSystem f80910d3223ac120a4a38e9789ee82ba089921344b5c5b87dce3921adcd578dc: The request is not supported.
ExitCode: 125

@IgorPayPoint
Copy link
Author

Thanks a lot, that seemed to work, not I've got another error but it appears to be related my CPU not supporting some level of virtualisation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants