Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Docker toolbox script runs only from the icon #487

Open
mehrotra-prateek opened this issue Apr 29, 2016 · 4 comments
Open

Docker toolbox script runs only from the icon #487

mehrotra-prateek opened this issue Apr 29, 2016 · 4 comments

Comments

@mehrotra-prateek
Copy link

mehrotra-prateek commented Apr 29, 2016

Hello,
I am not sure if this is an issue but quite intriguingly after installation, if I use the shortcut on desktop all starts up fine. But at the same time if I take its startup command i.e.

"D:\Program Files (x86)\Git\bin\bash.exe" --login -i "D:\Program Files\Docker Toolbox\start.sh"

and run it from windows cmd, same git bash or cygwin bash then there is failure with below result

Docker Machine is not installed. Please re-run the Toolbox Installer and try again.
Looks like something went wrong in step ´Looking for vboxmanage.exe´... Press any key to continue...

This does look familiar to #473 and also #484.

I would agree with request of change in #484 if I could understand the reason behind this.

@fariazz
Copy link

fariazz commented May 12, 2016

It seems start.sh only works if you run it from the folder C:\Program Files\Docker Toolbox. If you look at the desktop shortcut that works, it has that folder in "Starts in". If you run it from command line, you have to cd to that desktop to make it work (in my case at least).

I created another desktop shortcut icon which is the same as the automatically created one, but uses git-bash.exe, which is a bit nicer IMO. The Target value I entered in the shortcut properties is "C:\Program Files\Git\git-bash.exe" start.sh, and for it to work, "Starts in" C:\Program Files\Docker Toolbox

@fresheneesz
Copy link

I had the same problem. I can confirm that running start.sh from C:\Program Files\Docker Toolbox does the trick (initiates installation of virtualbox and initializes a docker command prompt).

@BartGo
Copy link

BartGo commented Dec 27, 2016

Adding cd "/c/Program Files/Docker Toolbox" as the first operation in the start.sh solved the problem for me.

@strarsis
Copy link

strarsis commented Apr 28, 2018

Apparently the DOCKER_TOOLBOX_INSTALL_PATH variable is not set in the start.sh script.

Additionally, the backslash in start.sh caused an issue in WSL (Bash on Windows):

DOCKER_MACHINE="${DOCKER_TOOLBOX_INSTALL_PATH}\docker-machine.exe"

to

DOCKER_MACHINE="${DOCKER_TOOLBOX_INSTALL_PATH}/docker-machine.exe"

And DOCKER_TOOLBOX_INSTALL_PATH environment variable has to be set before start.sh in .bashrc:

export DOCKER_TOOLBOX_INSTALL_PATH='/mnt/c/Program Files/Docker Toolbox/'

Maybe WSLENV could re-use these existing Windows environment variables?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants