Table of Content

This is error when start docker with my own msys bash from shortcut or Cmder/Console2 task tab,

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

Looks like some issue in start.sh in this way, finally made it working as below setup.

1) install Docker ToolBox without Git and VirtualBox options

2) comment out ‘clear’ in start.sh if clear command not existing in your msys bin

3) add shortcut alias to msys /etc/profile
alias dockerstart=’cd /c/"Program Files"/"Docker Toolbox";./start.sh’

4) start msys bash in interactive mode

Cmder:
start Cmder then start msys bash from CLI or task tab
%ConEmuDir%\..\..\..\msys\bin\bash --login -i
Console2:
start Console2 then start msys bash from CLI or tab
"drive":\"portablepath"\msys\bin\bash.exe --login -i

5) run dockerstart

$ dockerstart
Creating CA: C:\Users\"username"\.docker\machine\certs\ca.pem
Creating client certificate: C:\Users\"username"\.docker\machine\certs\cert.pem
Running pre-create checks...
(default) Image cache directory does not exist, creating it at C:\Users\\.docker\machine\cache...
(default) No default Boot2Docker ISO found locally, downloading the latest release...
(default) Latest release for github.com/boot2docker/boot2docker is v1.11.2
(default) Downloading C:\Users\"username"\.docker\machine\cache\boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v1.11.2/boot2docker.iso...
(default) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
Creating machine...
(default) Copying C:\Users\"username"\.docker\machine\cache\boot2docker.iso to C:\Users\"username"\.docker\machine\machines\default\boot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
(default) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: "drive":\"portablepath"\Docker Toolbox\docker-machine.exe env default

## .
## ## ## ==
## ## ## ## ## ===
/"""""""""""""""""\___/ ===
~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ / ===- ~~~
\______ o __/
\ \ __/
\____\_______/

docker is configured to use the default machine with IP 192.168.99.104
For help getting started, check out the docs at https://docs.docker.com

Start interactive shell

$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES

$ docker version
Client:
Version: 1.11.2
API version: 1.23
Go version: go1.5.4
Git commit: b9f10c9
Built: Wed Jun 1 21:20:08 2016
OS/Arch: windows/amd64

Server:
Version: 1.11.2
API version: 1.23
Go version: go1.5.4
Git commit: b9f10c9
Built: Wed Jun 1 21:20:08 2016
OS/Arch: linux/amd64

$ docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 1.11.2
Storage Driver: aufs
Root Dir: /mnt/sda1/var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 0
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: null host bridge
Kernel Version: 4.4.12-boot2docker
Operating System: Boot2Docker 1.11.2 (TCL 7.1); HEAD : a6645c3 - Wed Jun 1 22:59:51 UTC 2016
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 995.9 MiB
Name: default
ID: PIKJ:LYRQ:ERMA:RVZS:LL4X:VUY7:4MX7:UMJL:AOA2:UWAC:Z6VK:RC26
Docker Root Dir: /mnt/sda1/var/lib/docker
Debug mode (client): false
Debug mode (server): true
File Descriptors: 12
Goroutines: 29
System Time: 2016-07-23T17:20:37.746069685Z
EventsListeners: 0
Registry: https://index.docker.io/v1/
Labels:
provider=virtualbox

6) how to stop/start docker machine

docker-machine status default
docker-machine stop default
docker-machine start default