Vote count:
0
I have installed Docker on my Windows laptop using Docker for Windows Installer v1.6.0. When I ran the start.sh script for the first time, it initializes and starts the VM, but then the script gives the error "line 36: cd: HOME not set" and exits:
C:\Program Files\Boot2Docker for Windows>start.sh
initializing...
starting...
Waiting for VM and Docker daemon to start...
............................oooooooo
Started.
Writing C:\Users\Administrator\.boot2docker\certs\boot2docker-vm\ca.pem
Writing C:\Users\Administrator\.boot2docker\certs\boot2docker-vm\cert.pem
Writing C:\Users\Administrator\.boot2docker\certs\boot2docker-vm\key.pem
To connect the Docker client to the Docker daemon, please set:
export DOCKER_CERT_PATH='C:\Users\Administrator\.boot2docker\certs\boot2docker-vm'
export DOCKER_TLS_VERIFY=1
export DOCKER_HOST=tcp://192.168.59.103:2376
IP address of docker VM:
192.168.59.103
setting environment variables ...
Writing C:\Users\Administrator\.boot2docker\certs\boot2docker-vm\ca.pem
Writing C:\Users\Administrator\.boot2docker\certs\boot2docker-vm\cert.pem
Writing C:\Users\Administrator\.boot2docker\certs\boot2docker-vm\key.pem
export DOCKER_HOST=tcp://192.168.59.103:2376
export DOCKER_CERT_PATH='C:\\Users\\Administrator\\.boot2docker\\certs\\boot2docker-vm'
export DOCKER_TLS_VERIFY=1
You can now use `docker` directly, or `boot2docker ssh` to log into the VM.
C:\Program Files\Boot2Docker for Windows\start.sh: line 36: cd: HOME not set
C:\Program Files\Boot2Docker for Windows>
Lines 36 and 37 of the script are:
cd
exec "$BASH" --login -i
I've had to make some changes to the install to get this far:
- When
start.shopened WordPad, I madeC:\Program Files (x86)\Git\bin\sh.exeWindows' default program for.shfiles - When
start.shencountered the error "line 5: clear: command not found", I addedC:\Program Files (x86)\Git\binto my system's path - When the VM failed to start with "error in run: Failed to start machine "boot2docker-vm": exit status 1", I ran
boot2docker deleteandboot2docker downloadto delete the VM and download the ISO again
Now I'm stuck on the error "line 36: cd: HOME not set" in start.sh.
Docker's Windows Installer v1.6.0 was just published yesterday (April 16), so there's not much help on it yet (such as a GitHub or Docker's forums).
Any help would be appreciated. Thanks.
asked 23 secs ago
"line 36: cd: HOME not set" in start.sh in Boot2Docker installed using Docker for Windows v1.6.0
Aucun commentaire:
Enregistrer un commentaire