Commit Graph

774 Commits

Author SHA1 Message Date
Ahmet Alp Balkan
8a0e6946b5 driver/azure: atomic write for tenant ID file
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-03-30 13:14:50 -07:00
Ahmet Alp Balkan
500d7d20c5 driver/azure: Performance improvements
Making Azure operation polling intervals more frequent to
detect completions faster (and thus making machine creations
faster).

Reduce one Azure API call for each machine command by caching
the discovered Azure Active Directory tenant ID of the user’s
Azure subscription into a local file. This also makes Azure
driver commands faster.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-03-30 12:26:23 -07:00
Nathan LeClaire
bc89bf5e8d Prevent /var/lib/boot2docker/bootlocal.sh munging on restart
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-03-22 12:22:15 -07:00
Nathan LeClaire
137adfe306 Merge pull request #3214 from exoscale/feature/update-egoscale
exoscale: support for CoreOS
2016-03-22 11:49:39 -07:00
Nathan LeClaire
cec812ae2f Merge pull request #3215 from sivel/rackspace-active-timeout
Add --rackspace-active-timeout argument to rackspace driver
2016-03-22 11:49:21 -07:00
Vincent Bernat
05aea83271 exoscale: add support for CoreOS
The egoscale binding for exoscale was limiting the images that could be
selected by a user to Ubuntu one only. Enable the use of arbitrary
images. For example, the following images are now available:

 - centos-6.6
 - centos-7.1
 - coreos-stable-835
 - debian-7
 - debian-8
 - ubuntu-12.04
 - ubuntu-14.04
 - ubuntu-15.10

The default user for non-Ubuntu images are not "ubuntu". Let the user
choose the appropriate user ("core" for CoreOS and "debian" for Debian).

CoreOS user are likely to want the ability to provide custom user data
as it enables the configuration of the etcd cluster. We add an option to
provide custom user data file. Moreover, we remove some of the default
options as they are not supported in CoreOS and are useless on
Debian/Ubuntu:

 - Resizing of rootfs is already done on all images by default.
 - Docker Machine will set the hostname as part of the provisioning.

Signed-off-by: Vincent Bernat <Vincent.Bernat@exoscale.ch>
2016-03-22 08:20:35 +01:00
Nathan LeClaire
593fe2b4d0 Merge pull request #3168 from jtnord/issue-2989
[Issue-2989] Allow non administrators to create docker-machines
2016-03-21 17:31:52 -07:00
James Nord
a5da41de6e Allow hyper-v driver to be used from non admin accounts and clean up the fixed disk after convertion.
Signed-off-by: James Nord <jnord@cloudbees.com>
2016-03-21 21:00:53 +00:00
Matt Martz
bd5ea7c335 Add --rackspace-active-timeout argument to rackspace driver
Signed-off-by: Matt Martz <matt@sivel.net>
2016-03-21 11:54:17 -05:00
Nathan LeClaire
25672016fa Merge pull request #3194 from ahmetalpbalkan/azure-static-ip
azure: Add --azure-static-public-ip flag
2016-03-15 11:40:11 -07:00
Nathan LeClaire
282fdebeaf Merge pull request #3124 from StefanScherer/set-nictype1
Add flag --virtualbox-nictype to set NIC type of eth0
2016-03-15 11:39:10 -07:00
Ahmet Alp Balkan
b898c07ad6 azure: Add --azure-static-public-ip flag
This flag creates Azure VMs with static public IPs that don’t
get released when the VM is deallocated.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-03-14 21:47:51 -07:00
Nathan LeClaire
ef4823f2ac Merge pull request #3159 from ahmetalpbalkan/azure-arm
New Microsoft Azure docker-machine driver
2016-03-14 18:28:51 -07:00
Stefan Scherer
f0ac1c00ea Add flag --virtualbox-nictype to set nictype1
Signed-off-by: Stefan Scherer <scherer_stefan@icloud.com>
2016-03-14 22:49:27 +01:00
Ahmet Alp Balkan
44200e7a04 Case-insensitive Azure Resource Provider matching
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-03-12 18:18:53 -08:00
Nathan LeClaire
67485c60a8 Merge pull request #3165 from paul-callahan/3060-vboxnet-iface-conflict
add code and tests to detect vboxnet collision with host interfaces
2016-03-11 15:52:36 -08:00
Tiago Pires
63ea976b1d FIX #1858 Add engine port
Added flag `--generic-engine-port` to `generic` drive in order to specify other port than `2376` on
Docker engine.
Updated `generic` driver documentation.

Signed-off-by: Tiago Pires <tandrepires@gmail.com>
2016-03-11 13:13:30 +00:00
Ahmet Alp Balkan
ce3cb54482 Update default image to Ubuntu 15.10
- Default image now is ubuntu server 15.10. This ensures consistency with
  other cloud drivers.
- Better error message when virtual machine already exists.
- Change default SSH user from `ubuntu` to `docker-user`.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-03-10 16:36:21 -08:00
Paul Callahan
0db41d0a92 add code and tests to detect vboxnet collision with host interfaces
+ exclude existing host-only nets from list of host interfaces
+ interface and mocks for system calls to net.*

Signed-off-by: Paul Callahan <paul.callahan@gmail.com>
2016-03-10 15:05:26 -08:00
Ahmet Alp Balkan
7b96160454 Friendly deprecation notice for old driver VMs
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-03-09 15:43:49 -08:00
Jeremiah Peschka
b800a93f5e Creating distinct Hyper-V and Administrators role checks
Signed-off-by: Jeremiah Peschka <jeremiah.peschka@gmail.com>
2016-03-09 13:53:11 +00:00
Ahmet Alp Balkan
ed95f3baab New Microsoft Azure docker-machine driver
The new driver uses Azure Resource Manager APIs and offers a lot
more functionality compared to the old Azure driver. It is also
easier to authenticate and does not require user to create and place
certificate files. It only has a single required argument.

This is a breaking change: The new driver cannot work with machines
created with the older Azure driver and vice versa (as the APIs are
entirely different and resources are not shared between old/new azure
APIs).

The new driver addresses many issues about the azure driver reported
so far.

This resolves #2742, resolves #1368, resolves #1142, resolves #2236,
resolves #2408, resolves #1126, resolves #774.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-03-07 19:55:51 -08:00
Nathan LeClaire
475053cd7f Merge pull request #3147 from nathanleclaire/fix_nitpick
Fix amazonec2 test nitpicks
2016-03-07 17:13:25 -08:00
Nathan LeClaire
7452cb2c4f Fix amazonec2 test nitpicks
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-03-07 16:45:58 -08:00
Nathan LeClaire
f7d4761390 Merge pull request #3140 from SeerUK/master
Updated VMWare Fusion driver to attempt to bind mount the share directory, to fix #2050.
2016-03-07 16:45:19 -08:00
Nathan LeClaire
4d68c92a78 Merge pull request #3158 from tyrken/vsphere-port-default
Default to port 443 for all vsphere actions, not just creation
2016-03-07 15:20:37 -08:00
Ahmet Alp Balkan
b53f020c90 Remove azure driver temporarily
This commit temporarily removes Azure driver and its dependencies
from the source tree and adds dependencies for the new Azure driver
(so that Azure driver PR will not have godeps changes and will be
easier to review).

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-03-07 13:34:09 -08:00
Tristan Keen
1b919459e8 Default to port 443 for all vsphere actions, not just creation
Signed-off-by: Tristan Keen <tristan.keen@gmail.com>
2016-03-07 21:31:27 +00:00
Nathan LeClaire
1a0a740e27 Merge pull request #3111 from jsirois/jsirois/amazoneec2/multiple_sgs
Support multiple `--amazonec2-security-group`s.
2016-03-04 11:48:49 -08:00
Bilal Amarni
17c6578583 [DigitalOcean] Allow to use an existing SSH key (closes #1445)
Signed-off-by: Bilal Amarni <bilal.amarni@gmail.com>
2016-03-03 10:35:32 +01:00
John Sirois
494ba5f010 Support multiple --amazonec2-security-groups.
Maintains support for loading old Driver config.json that use the
singular `SecurityGroupName` field, but also adds a new plural
`SecurityGroupNames` field.

This change also bumps to latest stretchr/testify, in the course of
adding a dep on stretchr/testify/mock to help test the modified
`configureSecurityGroups` code.

The unused `deleteSecurityGroup` is dropped as well.

Signed-off-by: John Sirois <john.sirois@gmail.com>
Signed-off-by: Bill Farner <terasurfer@gmail.com>
2016-03-02 23:30:28 -07:00
Elliot Wright
ced43e8a09 Updated VMWare Fusion driver to attempt to bind mount the share directory, to fix #2050.
Signed-off-by: Elliot Wright <elliot@elliotwright.co>
2016-03-02 14:37:35 +00:00
Jason Roehm
6789c51b83 Google driver: add --google-use-internal-ip-only flag
This addresses previously-closed issue #2876, which points out that
instances created with the `--google-use-internal-ip` command-line flag
are still assigned an external IP address. The new flag (which implies
the presence of `--google-use-internal-ip` if it isn't specified) will
cause the new instance to have no externally-accessible IP address.

Signed-off-by: Jason Roehm <jroehm@gmail.com>
2016-03-01 12:41:19 -05:00
Nathan LeClaire
d87383e8f3 Merge pull request #3121 from nathanleclaire/revert_rax_net_switches
Revert "Rackspace/Openstack - Add/enhance --*-net-* create switches."
2016-02-26 13:33:03 -08:00
Nicholas Kinsey
0bdc0c61ce Fix typo in DigitalOcean driver
"defaultSSHUSer" -> "defaultSSHUser"

Signed-off-by: Nicholas Kinsey <pyro@feisty.io>
2016-02-27 06:07:10 +10:00
Nathan LeClaire
a8f00e8ba0 Revert "Rackspace/Openstack - Add/enhance --*-net-* create switches."
This reverts commit 07cadc68a5.

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-02-26 11:24:23 -08:00
Nathan LeClaire
499cd9f201 Merge pull request #2974 from robertjustjones/rackspace-net-switches
Rackspace/Openstack - Add/enhance --*-net-* create switches.
2016-02-25 16:20:07 -08:00
Travis Thieman
b57c4c203f Determine host-only interface dynamically, stop assuming eth1
Signed-off-by: Travis Thieman <travis.thieman@gmail.com>
2016-02-25 12:02:26 -05:00
Robert Jones
07cadc68a5 Rackspace/Openstack - Add/enhance --*-net-* create switches.
Signed-off-by: Robert Jones <robert@justjones.org>
2016-02-21 11:23:38 -06:00
Stefan Scherer
c40f9f7a21 Add option --longmode on to support Windows 32bit hosts
Signed-off-by: Stefan Scherer <scherer_stefan@icloud.com>
2016-02-19 08:51:24 +01:00
David Gageot
7070fe863b Merge pull request #3075 from synfinatic/adt-enable-fusion-timesync
Enable syncing time for VMWare Fusion guests
2016-02-18 17:57:18 +01:00
Jean-Laurent de Morlhon
cf7885163c Merge pull request #2932 from sipicsg/master
added hyperv static mac address and vlan option for machine creation
2016-02-18 09:56:34 +01:00
Jean-Laurent de Morlhon
bf12d191e3 Merge pull request #3018 from hypriot/improve-no-vtx-check
Improve --virtualbox-no-vtx-check option to allow starting the VM
2016-02-18 09:54:54 +01:00
David Gageot
5918c13d22 Merge pull request #3067 from dgageot/3056-ls-timeout
FIX #3056 ls timeout when instance is stopped
2016-02-18 08:41:43 +01:00
Nathan LeClaire
7ec902189d Merge pull request #3069 from dgageot/3068-dns-proxy-mode
VirtualBox: use dns proxy mode
2016-02-17 13:35:55 -08:00
Aaron Turner
e790d9f47a Enable syncing time for VMWare Fusion guests
By default, VMWare Fusion does not sync the guest OS's time to the host
and when running Fusion+docker-machine on a laptop the guest clock will
drift and not resync which can create a variety of problems (such as
authentication issues with AWS, etc)

Signed-off-by: Aaron Turner <synfinatic@gmail.com>
2016-02-17 09:46:39 -08:00
David Gageot
ffb9cbed7a FIX #3056 ls timeout when instance is stopped
Signed-off-by: David Gageot <david@gageot.net>
2016-02-17 18:09:39 +01:00
Jerome Loisel
c0d03b928e Fix: missing AMI for ap-northeast-2
Ubuntu Server 14.04 LTS (HVM), EBS General Purpose (SSD) Volume Type. Support available from Canonical (http://www.ubuntu.com/cloud/services ).

Signed-off-by: jloisel <jerome.loisel@grinstone.com>
2016-02-17 16:55:58 +01:00
David Gageot
3e6c3c05ce FIX #3068 DNS Proxy mode
Signed-off-by: David Gageot <david@gageot.net>
2016-02-17 15:02:27 +01:00
David Gageot
4c9879dcd5 FIX #3065 Improve VT-X check
Signed-off-by: David Gageot <david@gageot.net>
2016-02-17 13:46:05 +01:00