Member since
02-26-2018
2
Posts
1
Kudos Received
0
Solutions
02-26-2018
10:49 AM
1 Kudo
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
... View more
Labels:
- Labels:
-
Docker