Start a VM with Docker with a simple command
This is how to easily setup a VM with Docker and Docker Remote API enabled.
We use VirtualBox, Vagrant and Docker for that.
vagrant version to check that vagrant is correctly installed.
Vagrantfile from this gist to a local directory.
Go inside the directory and run
vagrant up. The first startup will take a few minutes to download everything.
Then you have a ready to use Virtual Machine with Docker.
To STOP, but not delete the VM run
To DELETE the VM run
Restart the VM with
Login to VM with a terminal
vagrant ssh to login to your VM.
On Windows you might have to put ssh.exe to your %PATH%. If you have installed git, you can use C:\Program Files\Git\usr\bin
You can also login via Putty on host: "localhost", Port "2222", login: "vagrant", password: "vagrant".