CMD scripts executed from Docker CLI hangs

I have this simple CMD script on Windows that I copy with Docker Extension:

@echo offecho “Starting Chrome with debugging port and TCP forward…”
cd /d “%~dp0”
start “” “%ProgramFiles%\Google\Chrome\Application\chrome.exe”
echo SUCCESS: Chrome and TCP forward started successfullyexit /b 0

I run this script from inside the docker extension UI like this:

ddClient.extension.host.cli.exec('start-host-browser.cmd')

The script gets executed and the browser is launched. However, the command doesn’t return until those I close those services.

What could be the cause for this? Any suggestion to how to debug it would be very helpful.

What would greatly help is to understand how `exec`launches programs on windows.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.