standardize install and configuration of docker

This makes the default OS Ubuntu 14.04 amd64 and uses a "standard" method of installing and configuring Docker.  This will handle installing Docker as well as setting the default options to be unified across providers.  It also makes for an easier upgrade path as drivers simply need to call `InstallDocker`.
Thanks that may work.  I was referencing the WaitForSSH in ssh.

On Sun, Dec 21, 2014 at 2:07 PM, Nathan LeClaire <notifications@github.com>
wrote:
>
> In drivers/utils.go
> <https://github.com/docker/machine/pull/125#discussion-diff-22149491>:
>
> > @@ -43,3 +47,27 @@ func PublicKeyExists() (bool, error) {
> >  	}
> >  	return false, err
> >  }
> > +
> > +func EncodeToBase64(data string) string {
> > +	buf := bytes.NewBufferString(data)
> > +	encoded := base64.StdEncoding.EncodeToString(buf.Bytes())
> > +	return encoded
> > +}
> > +
> > +func WaitForDocker(url string, maxWait int) bool {
> > +	counter := 0
> > +	for {
> > +		conn, err := net.Dial("tcp", url)
>
> If I understand what you're going for here correctly, you may want to use
> net.DialTimeout instead (http://golang.org/pkg/net/#DialTimeout)
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/docker/machine/pull/125/files#r22149491>.
>