mirror of https://github.com/docker/docs.git
Fix windows start script
This commit is contained in:
parent
ce6cecc080
commit
6f9751d618
|
|
@ -6,6 +6,10 @@ ISO=$HOME/.docker/machine/cache/boot2docker.iso
|
||||||
VM=dev
|
VM=dev
|
||||||
DOCKER_MACHINE=./docker-machine.exe
|
DOCKER_MACHINE=./docker-machine.exe
|
||||||
|
|
||||||
|
BLUE='\033[1;34m'
|
||||||
|
GREEN='\033[0;32m'
|
||||||
|
NC='\033[0m'
|
||||||
|
|
||||||
mkdir -p ~/.docker/machine/cache
|
mkdir -p ~/.docker/machine/cache
|
||||||
if [ ! -f $ISO ]; then
|
if [ ! -f $ISO ]; then
|
||||||
mkdir -p "$(dirname "$ISO")"
|
mkdir -p "$(dirname "$ISO")"
|
||||||
|
|
@ -26,9 +30,7 @@ $DOCKER_MACHINE start dev
|
||||||
echo "Setting environment variables for machine $VM..."
|
echo "Setting environment variables for machine $VM..."
|
||||||
./docker-machine.exe env $VM | sed 's,\\,\\\\,g' # eval swallows single backslashes in windows style path
|
./docker-machine.exe env $VM | sed 's,\\,\\\\,g' # eval swallows single backslashes in windows style path
|
||||||
|
|
||||||
eval "$(./docker-machine.exe env $VM 2>/dev/null | sed 's,\\,\\\\,g')"
|
eval "$($DOCKER_MACHINE env $VM 2>/dev/null | sed 's,\\,\\\\,g')"
|
||||||
|
|
||||||
cd
|
|
||||||
|
|
||||||
clear
|
clear
|
||||||
cat << EOF
|
cat << EOF
|
||||||
|
|
@ -44,7 +46,6 @@ cat << EOF
|
||||||
\____\_______/
|
\____\_______/
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
echo "The Quick Start CLI is configured to use Docker with the $VM VM"
|
echo -e "${BLUE}docker${NC} is configured to use the ${GREEN}dev${NC} machine with IP ${GREEN}$($DOCKER_MACHINE ip $VM)${NC}"
|
||||||
echo
|
echo
|
||||||
|
cd
|
||||||
exec "$BASH" --login -i
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue