Commit Graph

459 Commits

Author SHA1 Message Date
Nathan LeClaire
19973f2b1b Fix golint errors
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-11-15 17:14:17 -08:00
Nathan LeClaire
32185d47d2 Merge pull request #3866 from andrestc/core-drivers-slice
libmachine: initiliaze core drivers as slice instead of array
2016-11-11 11:28:06 -08:00
André Carvalho
bdc4af7f1f libmachine: initiliaze core drivers as slice instead of array
Signed-off-by: André Carvalho <asantostc@gmail.com>
2016-11-11 13:47:14 -02:00
Dave Henderson
678f729fa0 Fixing syntax for upgrade action on Arch Linux provisioner
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
2016-10-28 21:23:38 -04:00
Nathan LeClaire
a6f19fa738 Merge pull request #3839 from s-koba/2046-env-add-api-ver
Add DOCKER_API_VERSION to env
2016-10-28 13:54:05 -07:00
Nathan LeClaire
786c931de9 Merge pull request #3847 from tolbrino/tb/fix_ssh_key_perms_freebsd
Fix ssh keyfile permissions on FreeBSD
2016-10-28 13:47:16 -07:00
Alexander Kanevskiy
be4aed9528 Improve error message if driver binary not available
This change provide more information which exact binary for
particular driver is missing in PATH

Signed-off-by: Alexander Kanevskiy <kad@linux.intel.com>
2016-10-28 17:44:20 +03:00
Tino Breddin
6b38caacc1 Fix ssh keyfile permissions on FreeBSD
Signed-off-by: Tino Breddin <t@tolbrino.com>
2016-10-25 15:42:16 +02:00
KOBAYASHI Shinji
cc6c432ad8 Add DOCKER_API_VERSION to env
Fixes #2046

Signed-off-by: KOBAYASHI Shinji <koba@jp.fujitsu.com>
2016-10-24 09:57:42 +09:00
Nathan LeClaire
bb9c908bbc Merge pull request #3820 from PouuleT/closeSSHConn
Close properly SSH clients created by NativeClient
2016-10-21 14:06:54 -07:00
Flavio Castelli
8106da7090 Refactoring of the SUSE/openSUSE provisioner
This provisioner is not relying on the bash script hosted
at get.docker.com.

Helps fixing issue #23480

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2016-10-20 22:51:20 +02:00
Lucas BEE
939802292d Close properly SSH clients created by NativeClient
Signed-off-by: Lucas BEE <pouulet@gmail.com>
2016-10-18 17:49:15 +00:00
Stephen Blackstone
3f2e24d6b1 Dialer TLS timeout is too short, 2 -> 20 seconds
Signed-off-by: Stephen Blackstone <sblackstone@gmail.com>
2016-10-13 17:50:12 -04:00
Tino Breddin
b3a72481d8 FreeBSD: add build support
Signed-off-by: Tino Breddin <t@tolbrino.com>
2016-10-04 17:00:08 +02:00
Nathan LeClaire
f4e482a68f Update fish test now that magic env var is not used
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-09-27 16:13:26 -07:00
Nathan LeClaire
adff26ad62 Merge pull request #3768 from cibotech/master
Remove incorrect hard-coded "fish" shell identification.
2016-09-26 14:27:29 -07:00
Aaron Prindle
6517c2a950 Use net.JoinHostPort to allow for ipv6 addresses to work properly.
Signed-off-by: Aaron Prindle <aprindle@google.com>

Signed-off-by: Aaron Prindle <aprindle@google.com>
2016-09-23 15:13:57 -07:00
Scott
f26dda16f6 Remove hard-coded incorrect "fish" shell identification.
The lines removed cause the shell to be identified as `fish` if the `__fish_bin_dir`, even when `$SHELL` is explicitly set to something else.

This causes a fish user to get the `fish` env when running a non-fish sub-shell.  All bash scripts that use `docker-machine env` will fail for fish users.

Signed-off-by: Scott M. Smith <scottsmith1@gmail.com>
2016-09-20 09:40:07 -07:00
tronicum
ae976cada8 removal of yum repo setup code.
now done by get.docker.com/install.sh magic.

Signed-off-by: tronicum <tronicum@gmail.com>
2016-09-13 10:26:00 +02:00
André Carvalho
62b081a5dd fakestore: add tests 2016-09-02 17:48:04 -03:00
André Carvalho
000bd2a7a9 fakestore: rename file to match filestore pattern
Signed-off-by: André Carvalho <andre.carvalho@corp.globo.com>
2016-09-02 17:47:46 -03:00
André Carvalho
c351308cb7 libmachine: implements save and remove on FakeStore
This makes the Save and Remove methods of the FakeStore
manipulate the Hosts slice accordingly.

Signed-off-by: André Carvalho <andre.carvalho@corp.globo.com>
2016-09-02 11:34:07 -03:00
Bilal Amarni
4587b4447b [provision] fix replace pattern in /etc/hosts
Require a space before the hostname.

Signed-off-by: Bilal Amarni <bilal.amarni@gmail.com>
2016-08-22 09:59:36 +02:00
Bilal Amarni
0ad4f6d109 Update certificates error message
Which is not necessarily true since live-restore was introduced
(https://docs.docker.com/engine/admin/live-restore/).

Signed-off-by: Bilal Amarni <bilal.amarni@gmail.com>
2016-08-15 10:34:46 +02:00
Stefan Sels
bd7fafda34 bumping to fedora version to 24
Signed-off-by: Stefan Sels <tronicum@gmail.com>
2016-08-01 14:48:28 +02:00
Nathan LeClaire
530111d32d Move generated systemd unit file closer to upstream
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-07-29 14:49:54 -07:00
Nathan LeClaire
34ea48e7dc Merge pull request #3564 from cdrage/add-variantid-to-osrelease
Add VARIANT and VARIANT_ID to os-release
2016-07-05 16:39:16 -07:00
Nathan LeClaire
338744a639 Merge pull request #3571 from nathanleclaire/disable_nonswarm_ext_attribute_client_for_server_cert
Disable extended key usage as a client for non-Swarm-master server certs
2016-07-05 16:23:35 -07:00
Nathan LeClaire
c0b721b5f9 Disable extended key usage as a client for non-Swarm-master server certs
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-07-05 16:08:28 -07:00
Charlie Drage
e29c77bff3 Add VARIANT and VARIANT_ID to os-release
In order to provision different variant types such as embedded and
server releases, it's required to grep the VARIANT and VARIANT_ID
variables of os-release.

Specifically from this commit:
56267336c7

Which adds the VARIANT_ID="atomic.host" in order to differentiate
between Fedora Server and container-centric Atomic Host releases.

This commit adds the accessability of VARIANT and VARIANT_ID in order
for Docker Machine to successfully provision different variants of Fedora
releases.

Signed-off-by: Charlie Drage <charlie@charliedrage.com>
2016-07-04 17:33:58 -04:00
KOBAYASHI Shinji
cd95232ac7 Remove "open : no such file or directory" message during crash report
Add an empty string check to the path argument of addFile(). Send()
method of BugsnagCrashReporter calls addFile() passing err.LogFilePath
as the path argument, which is an empty string if the driver is not
virtualbox.

Fixes #3559

Signed-off-by: KOBAYASHI Shinji <koba@jp.fujitsu.com>
2016-06-30 06:46:14 +00:00
Nathan LeClaire
5f6bc6fa72 Merge pull request #3508 from s-koba/3507-fix-redhat-ssh-logs
Add SSH logs when provisioning with RedHat derivatives
2016-06-23 17:29:26 -07:00
tronicum
5c888874e0 updated test
Signed-off-by: tronicum <tronicum@gmail.com>
2016-06-23 16:01:38 +02:00
tronicum
071ce5e667 bumped version up to fedora 23 (should'nt it use a matching version and only default to something else otherwise?)
Signed-off-by: tronicum <tronicum@gmail.com>
2016-06-23 15:39:01 +02:00
KOBAYASHI Shinji
ec4697ea33 Add SSH logs when provisioning with RedHat derivatives
Fixes #3507

Signed-off-by: KOBAYASHI Shinji <koba@jp.fujitsu.com>
2016-06-14 11:13:32 +00:00
Nathan LeClaire
d2fe2c281a Add code to exit when heartbeat call fails
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-06-13 16:03:10 -07:00
Nathan LeClaire
2420975f4e Merge pull request #3423 from npcode/fix-swarm-port-binding
Fix port binding of swarm master
2016-05-27 13:46:51 -07:00
Bilal Amarni
650629a936 [SSH] Allow private keys with 0400 permissions
Signed-off-by: Bilal Amarni <bilal.amarni@gmail.com>
2016-05-23 16:30:08 +02:00
Yi EungJun
d74f273c53 Fix port binding of swarm master
The port is 3376 by default but could be modified by --swarm-host
option.

Signed-off-by: Yi EungJun <eungjun.yi@navercorp.com>
2016-05-11 17:40:04 +09:00
Nicolas De Loof
8ed715fd4f Fixes #2302 Possibility to create master with manager, but without agent
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2016-04-28 20:16:56 +02:00
Nicolas De Loof
ab1ca913ad Introduce —swarm-join-opt to pass options to agent nodes
Fixes #3285
Fix regression introduced by PR #3287

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2016-04-28 09:40:31 +02:00
Nathan LeClaire
6839107ecc Merge pull request #3287 from LBaali/3285
Add support for --swarm-opt to agent nodes
2016-04-25 12:24:00 -07:00
Nathan LeClaire
4e898b1806 Merge pull request #3362 from nathanleclaire/fix_dangling_amazonec2_ssh_key
Ensure that attempt to remove instance and SSH key both go through
2016-04-25 11:48:35 -07:00
Nathan LeClaire
770d5bbb6f Ensure that attempt to remove instance and SSH key both go through
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-04-22 15:00:55 -07:00
Nathan LeClaire
008283733e Merge pull request #3330 from bamarni/issue-3268
[Generic] Copy the public key to machine directory (fixes #3268)
2016-04-22 10:58:53 -07:00
Bilal Amarni
9f8f1330c7 [Generic] Copy the public key to machine directory
Keeping an "orphan" private key can have some drawbacks :

http://apple.stackexchange.com/questions/18458/password-dialog-appears-when-ssh-private-key-permissions-are-set-to-0600/26252#26252

Signed-off-by: Bilal Amarni <bilal.amarni@gmail.com>
2016-04-22 10:11:57 +02:00
Lucien Gougerot
b0ef41f624 Closes #3285
This modification permits the swarm-agent created by docker-machine to
take into account the —swarm-opt arguments.

Signed-off-by: Lucien Gougerot <lucien.gougerot@gmail.com>
2016-04-20 11:16:39 +02:00
Bilal Amarni
b62afc85f7 SSH - don't enable BatchMode
When a passphrase protected key is not yet in ssh-agent, it gives a
chance to the user to fill a prompt instead of silently failing.

Signed-off-by: Bilal Amarni <bilal.amarni@gmail.com>
2016-04-17 09:39:52 +02:00
Nathan LeClaire
9718d6c266 Merge pull request #3312 from nathanleclaire/unbreak_upgrade
Remove lxc-docker to docker-engine migration code
2016-04-14 16:10:59 -07:00
Nathan LeClaire
9576b63077 Remove lxc-docker to docker-engine migration code
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2016-04-14 15:35:12 -07:00