mirror of
https://github.com/docker/docs.git
synced 2026-11-05 00:14:17 +03:00
Fix bug where docker start.sh on windows would error when VM is running
Signed-off-by: Jeffrey Morgan <jmorganca@gmail.com>
This commit is contained in:
@@ -30,7 +30,7 @@ else
|
||||
echo "Machine $VM already exists in VirtualBox."
|
||||
fi
|
||||
|
||||
VM_STATUS=$($DOCKER_MACHINE status $VM)
|
||||
VM_STATUS=$($DOCKER_MACHINE status $VM 2>&1)
|
||||
if [ "$VM_STATUS" != "Running" ]; then
|
||||
echo "Starting machine $VM..."
|
||||
$DOCKER_MACHINE start $VM
|
||||
|
||||
@@ -34,7 +34,7 @@ else
|
||||
echo "Machine $VM already exists in VirtualBox."
|
||||
fi
|
||||
|
||||
VM_STATUS=$($DOCKER_MACHINE status $VM)
|
||||
VM_STATUS=$($DOCKER_MACHINE status $VM 2>&1)
|
||||
if [ "$VM_STATUS" != "Running" ]; then
|
||||
echo "Starting machine $VM..."
|
||||
$DOCKER_MACHINE start $VM
|
||||
|
||||
Reference in New Issue
Block a user