Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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

avatar
New Member

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

avatar
Super Collaborator

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

View solution in original post

1 REPLY 1

avatar
Super Collaborator

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