- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Missing "docker start sandbox-hdp" statement in HDP sandbox start/RESTART Powershell script
- Labels:
-
Docker
Created 02-26-2018 10:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created 02-27-2018 02:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Thomas SCHWENDER Thank you for pointer out missing statement. The Downloads page will soon be updated.
Created 02-27-2018 02:52 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Thomas SCHWENDER Thank you for pointer out missing statement. The Downloads page will soon be updated.
