diff --git a/osx/mpkg/quickstart.app/Contents/Resources/Scripts/start.sh b/osx/mpkg/quickstart.app/Contents/Resources/Scripts/start.sh index 49ca52b1..d2c69c36 100755 --- a/osx/mpkg/quickstart.app/Contents/Resources/Scripts/start.sh +++ b/osx/mpkg/quickstart.app/Contents/Resources/Scripts/start.sh @@ -50,7 +50,7 @@ if [ $VM_EXISTS_CODE -eq 1 ]; then "${DOCKER_MACHINE}" create -d virtualbox $PROXY_ENV --virtualbox-memory 2048 --virtualbox-disk-size 204800 "${VM}" fi -VM_STATUS="$(${DOCKER_MACHINE} status ${VM} 2>&1)" +VM_STATUS="$( set +e ; ${DOCKER_MACHINE} status ${VM} )" if [ "${VM_STATUS}" != "Running" ]; then "${DOCKER_MACHINE}" start "${VM}" yes | "${DOCKER_MACHINE}" regenerate-certs "${VM}" diff --git a/osx/uninstall.sh b/osx/uninstall.sh index 85e2a21d..863618ac 100755 --- a/osx/uninstall.sh +++ b/osx/uninstall.sh @@ -17,7 +17,7 @@ while true; do done echo "Removing Applications..." -rm -rf /Applications/Docker +rm -rf /Applications/Docker.app echo "Removing docker binaries..." rm -f /usr/local/bin/docker diff --git a/script/build-osx b/script/build-osx index e1d30f49..d9f0e8c4 100755 --- a/script/build-osx +++ b/script/build-osx @@ -16,7 +16,7 @@ docker build \ --build-arg VBOX_REV="${VBOX_REV}" \ --build-arg MIXPANEL_TOKEN="${MIXPANEL_TOKEN}" \ . -CONTAINER="$(docker run -d osx-installer)" +CONTAINER="$(docker create osx-installer)" mkdir -p dist docker cp "${CONTAINER}":/DockerToolbox.pkg dist/ docker rm "${CONTAINER}" 2>/dev/null || true diff --git a/script/build-windows b/script/build-windows index e4ecdc1e..c30e3b09 100755 --- a/script/build-windows +++ b/script/build-windows @@ -16,7 +16,7 @@ docker build \ --build-arg VBOX_REV="${VBOX_REV}" \ --build-arg MIXPANEL_TOKEN="${MIXPANEL_TOKEN}" \ . -CONTAINER="$(docker run -d windows-installer)" +CONTAINER="$(docker create windows-installer)" mkdir -p dist docker cp "${CONTAINER}":/installer/Output/DockerToolbox.exe dist/ docker rm "${CONTAINER}" 2>/dev/null || true diff --git a/windows/start.sh b/windows/start.sh index 9a679778..6332c103 100644 --- a/windows/start.sh +++ b/windows/start.sh @@ -61,7 +61,7 @@ if [ $VM_EXISTS_CODE -eq 1 ]; then fi STEP="Checking status on $VM" -VM_STATUS="$(${DOCKER_MACHINE} status ${VM} 2>&1)" +VM_STATUS="$( set +e ; ${DOCKER_MACHINE} status ${VM} )" if [ "${VM_STATUS}" != "Running" ]; then "${DOCKER_MACHINE}" start "${VM}" yes | "${DOCKER_MACHINE}" regenerate-certs "${VM}"