Support Questions
Find answers, ask questions, and share your expertise

Missing "docker start sandbox-hdp" statement in HDP sandbox start/RESTART Powershell script

New Contributor

Hi,

Just a quick note: in the current Powershell version of the Docker HDP sandbox start and restart script, the `docker start` command is missing in case when the `sandbox-hdp` container already exists.

As a consequence, the 1st, initial call to the script (`start-sandbox-hdp-standalone_2-6-4.ps1`) is working, but all further ones will fail with the following error message:

PS C:\tools> powershell -ExecutionPolicy ByPass -File .\start-sandbox-hdp-standalone_2-6-4.ps1
Checking docker daemon...
Docker is up and running
Found HDP Sandbox image
HDP Sandbox container already exists
Error response from daemon: Container <container ID> is not running

This error is not present in the bash version, and the correction is straightforward:

If ((docker ps -a | Select-String sandbox-hdp) -ne $null) {
    Write-Host "HDP Sandbox container already exists"
    # The start instruction is missing in the official start-sandbox-hdp-standalone_2-6-4.ps1 start/RESTART script
    docker start sandbox-hdp
}
Else {
    Write-Host "Running HDP Sandbox for the first time..."

If interested, the whole amended file is available as a Gist here: https://gist.github.com/Ardemius/1d8d8d40e35636097981f114796c0280

Regards,

Thomas

1 ACCEPTED SOLUTION

Expert Contributor

@Thomas SCHWENDER Thank you for pointer out missing statement. The Downloads page will soon be updated.

View solution in original post

1 REPLY 1

Expert Contributor

@Thomas SCHWENDER Thank you for pointer out missing statement. The Downloads page will soon be updated.

; ;