[Bug]: BCPT did not find any Docker Container
Describe the issue
I want to use the Business Central Performance Toolkit VSCode Extension with a docker container but it did not find any container.
This will fetch forever and to type it in, will also not work.
Expected behavior
List my Container.
Steps to reproduce
- Create a Docker Container with Performance Toolkit in it
- run "BCPT: Setup new Business Central Performance Tooolkit project" command in VS Code:
- Select "Docker" and wait....
Additional context
Did I miss some needed setup? I tries serveral container parameters:
- OnPrem
- SandBox as OnPrem
- With Dev. License
- Without Dev. License
- and some others I forget.
I will provide a fix for a bug
- [X] I will provide a fix for a bug
@m3koenig, can you give full details about the steps you followed, like how you got the docker image, version, parameters used to create a docker instance, etc, to help me repro the issue? There are also few blogs that I hope you have already visited, if not please consider doing so. Fx. https://www.bertverbeek.nl/blog/2022/12/01/visual-studio-code-and-the-performance-toolkit/ https://demiliani.com/2023/09/05/dynamics-365-business-central-using-the-performance-toolkit-to-discover-performance-regressions/
First, with this container creation script, I create the container:
$containerName = 'MyBCPT'
$credential = Get-Credential -Message 'Using UserPassword authentication. Please enter credentials for the container.'
$auth = 'UserPassword'
$artifactUrl = Get-BcArtifactUrl -type 'Sandbox' -country 'de' -select 'Latest'
New-BcContainer `
-accept_eula `
-containerName $containerName `
-credential $credential `
-auth $auth `
-artifactUrl $artifactUrl `
-memoryLimit 8G `
-includeTestToolkit `
-includePerformanceToolkit -updateHosts
Then I open a VSCode BC Project (the code of an app) and run "BCPT: Setup new Business Central Performance Tooolkit project" command in VS Code:
Select "Docker" and then I waited:

+1 for this. No operation with Docker selected actually works (running either). Tried on two different machines, latest version of Docker used.
Same issue as #26799.
This seem to have been caused by change in the BCArtifactUrl. Needs a new version of vsix
I assume this was taken care of. Closing issue.
don't think it was taken care of....still not working....we are waiting for weeks now :'(
@ChethanT, could you check if this issue still is pending? Did we not resolve this?
We have updated the BCArtifactUrl. But after testing the docker story of bcpt is still broken because of some changes in Admin endpoint. We are actively working on this but need more time to solve it.
One option is using sandbox to run bcpt. It should work.
Hi @sweikelt @m3koenig @vjekob
We shall release a new version vsix to solve this.
But I have one question to double check with you: Could you help me check if your docker's port 7086 is available?
If it is not shown here, Consider to use this command to create the docker:
New-BcContainer
-accept_eula -containerName $containerName
-credential $credential -auth $auth
-artifactUrl $artifactUrl -includeTestToolkit
-includePerformanceToolkit -licenseFile $licenseFile
-updateHosts -additionalParameters @('--expose 7086')
This should be able to help you get rid of the issue temporary.
Hi @sweikelt @m3koenig @vjekob ...
New-BcContainer-accept_eula-containerName $containerName-credential $credential-auth $auth-artifactUrl $artifactUrl-includeTestToolkit-includePerformanceToolkit-licenseFile $licenseFile-updateHosts-additionalParameters @('--expose 7086')This should be able to help you get rid of the issue temporary.
I created container with NavUserPassword Auth + Open Port 7086, same. 2nd Container with Windows Auth, also.
Neverending:
@gggdttt,
i tried it with a fresh container exposing port 7086 (my older ones didn't expose this port). Same like before - as Christian said
Thanks for testing. Looks like it is necessary to update the vsix. Our release pipeline is freeze for holiday. I shall release a new version of vsix asap. (Around the beginning of Jan).
Explanation:
This issue occurs when NST is running inside container, authentication to the endpoint with NTLM works fine if NST is running without containers, looking at Fiddler traces for requests when NST is inside container and when it's not, there's a slight difference - the request into containerized NST starts NTLM authentication loop but it ends after 2 requests, requests into non-containerized NST has a different response in the second request, WWW-Authenticate is much longer, and authentication loop ends with a successful response.
This used to be working fine in v23 see , but becomes broken after move to .NET 8 in 24.0.
@gggdttt Is this issue solved? I tried with docker container - the same issue exists even with port 7086 open. Fetching forever.