Friday, May 13, 2016

Getting Started with Vagrant and Docker

Vagrant installs on Windows from a MSI download.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\gah285>vagrant --version
Vagrant 1.8.1

C:\Users\gah285>vagrant init precise64 http://files.vagrantup.com/precise64.box
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

C:\Users\gah285>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
...
...
...

C:\Users\gah285>vagrant ssh
`ssh` executable not found in any directories in the %PATH% variable. Is an
SSH client installed? Try installing Cygwin, MinGW or Git, all of which
contain an SSH client. Or use your favorite SSH client with the following
authentication information shown below:

Host: 127.0.0.1
Port: 2222
Username: vagrant
Private key: C:/Users/gah285/.vagrant/machines/default/virtualbox/private_key

I take the advice given in the error message and I added the GIT path to the system path in order to utilize that copy of ssh.
C:\Users\gah285>set PATH=%PATH%;c:\progra~1\git\usr\bin

C:\Users\gah285>vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
New release '14.04.4 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Welcome to your Vagrant-built virtual machine.
Last login: Fri Sep 14 06:23:18 2012 from 10.0.2.2
vagrant@precise64:~$