Hyper-V now only build on Windows.

Signed-off-by: Jeff Mendoza <jeffmendoza@live.com>
This commit is contained in:
Jeff Mendoza 2014-12-11 13:44:07 -08:00 committed by Evan Hazlett
parent ee0e29febe
commit edccb4a643
4 changed files with 4 additions and 2 deletions

View File

@ -18,7 +18,6 @@ import (
_ "github.com/docker/machine/drivers/azure"
_ "github.com/docker/machine/drivers/digitalocean"
_ "github.com/docker/machine/drivers/google"
_ "github.com/docker/machine/drivers/hyperv"
_ "github.com/docker/machine/drivers/none"
_ "github.com/docker/machine/drivers/openstack"
_ "github.com/docker/machine/drivers/rackspace"

View File

@ -211,7 +211,7 @@ func (d *Driver) Create() error {
log.Infof("Adding key to authorized-keys.d...")
if err := drivers.AddPublicKeyToAuthorizedHosts(d, "/root/.docker/authorized-keys.d"); err != nil {
if err := drivers.AddPublicKeyToAuthorizedHosts(d, "/var/lib/docker/auth.d"); err != nil {
return err
}

3
imports_windows.go Normal file
View File

@ -0,0 +1,3 @@
package main
import _ "github.com/docker/machine/drivers/hyperv"