Commit Graph

518 Commits

Author SHA1 Message Date
Serhii R
8eb98e336b set storage driver to overlay2 for archlinux
Signed-off-by: Serhii R <SRozdorozhnii@luxoft.com>
2019-05-14 15:34:27 +03:00
Cezar Sa Espinola
55bfb59b67 plugin/localbinary: Exit output stream goroutines when plugin closes
This commit ensures that when a plugin instance is closed the goroutines
responsible for streaming stdout and stderr of the called binary will
also exit, preventing a goroutines leak.

Before this commit these goroutines could stay blocked forever if
Close() was called while the binary still had some pending output.

I found this bug after debugging a real world goroutine leak, the
goroutines dump would show thousands of goroutines at:

```
github.com/tsuru/tsuru/vendor/github.com/docker/machine/libmachine/drivers/plugin/localbinary.stream(0xc023013d80, 0xc0000aad20)
	/home/travis/gopath/src/github.com/tsuru/tsuru/vendor/github.com/docker/machine/libmachine/drivers/plugin/localbinary/plugin.go:177 +0x7c
created by github.com/tsuru/tsuru/vendor/github.com/docker/machine/libmachine/drivers/plugin/localbinary.(*Plugin).AttachStream
	/home/travis/gopath/src/github.com/tsuru/tsuru/vendor/github.com/docker/machine/libmachine/drivers/plugin/localbinary/plugin.go:183 +0x67
```

Signed-off-by: Cezar Sa Espinola <cezarsa@gmail.com>
2019-01-08 14:45:53 -08:00
Konstantin Malanchev
ff19455ba8 Support of new openSUSE releases
- Only name for all SUSE family is used
- Prevent to rewrite `/usr/sbin/docker-runc` provided by modern `docker-runc` package with broken link.

Signed-off-by: Konstantin Malanchev <hombit@gmail.com>
2019-01-08 14:40:16 -08:00
Yuki Nishiwaki
6c90ba4d3d Return error of command exec in SSH NativeClient
Signed-off-by: Yuki Nishiwaki <uckey.1067@gmail.com>
2018-09-19 16:33:08 -07:00
Tianon Gravi
7a9ce45749 Update "aufs" to "overlay2" in several places
Signed-off-by: Tianon Gravi <admwiggin@gmail.com>
2018-09-19 16:28:48 -07:00
Robert Rettig
dfdca21286 change default storage driver for redhat
Signed-off-by: Robert Rettig <robert.rettig@ndgit.com>
2018-09-19 16:27:30 -07:00
Fabio Kruger
838076583b ISSUE-4450 Added ServerAliveInterval among the default ssh options and sorted them alphabetically to improve readability
Signed-off-by: Fabio Kruger <fabio.kruger@vyzvoice.com>
2018-04-12 16:14:57 +02:00
Joffrey F
1b5de469d0 Check NotAfter date on certs and recreate if necessary
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-03-02 11:02:44 -08:00
Joffrey F
7c1c8d749b Add --client-certs flag to regeneratecerts command
Signed-off-by: Joffrey F <joffrey@docker.com>
2018-02-20 12:09:47 -08:00
David Gageot
e0e4da5ac7 Merge pull request #4232 from andrestc/apt-retry
libmachine/provision: retries pkg installation if fails to get lock
2018-02-12 17:39:24 +01:00
David Gageot
2f0ad26d8c Merge pull request #4389 from nogoegst/crashreport-openbsd
Add OpenBSD support to libmachine/crashreport
2018-02-12 17:38:42 +01:00
Ivan Markin
a24431d17b Do chmod on ssh key on OpenBSD too
Signed-off-by: Ivan Markin <sw@nogoegst.net>
2018-02-10 21:16:59 +00:00
Ivan Markin
db9c84d5ba Add OpenBSD support to libmachine/crashreport
Signed-off-by: Ivan Markin <sw@nogoegst.net>
2018-02-10 14:04:30 +00:00
gfieni
796b367309 libmachine: Add usage of ss to check Docker Engine listening port when netstat is not available
Signed-off-by: Guillaume Fieni <gfieni@users.noreply.github.com>
2017-11-16 15:52:17 -08:00
Joffrey F
295730c547 Simplify code
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-10 17:31:20 -07:00
Guillaume Grussenmeyer
4766108f87 Fixed incorrect parsing of Boot2Docker ISO version (issue #4058).
Signed-off-by: Guillaume Grussenmeyer <ggrussenmeyer@gmail.com>
2017-10-10 17:31:20 -07:00
Joffrey F
47068ae585 Update non-existent rm test
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-02 19:14:56 -07:00
Victoria Bialas
9425a0c97c modified error message output on host already or does not exist
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
2017-10-02 19:14:56 -07:00
Joffrey F
97c1136d1e Remedy updated linter errors
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-10-02 13:44:36 -07:00
André Carvalho
bda4f00b45 libmachine/provision: retries pkg installation if fails to get lock
This commit is a follow-up on 38b4df4183
and makes sure we retry pkg installations if we fail to acquire a lock.

Signed-off-by: André Carvalho <asantostc@gmail.com>
2017-08-23 16:22:39 -03:00
fate-grand-order
6edf9f6d90 fix some typos to make Go Report more happy
Signed-off-by: Helen <chenjg@harmonycloud.cn>
2017-08-10 10:30:27 -07:00
Joffrey F
fcfbd11c80 Merge pull request #4174 from andrestc/hostkeycallback
ssh: Adds HostKeyCallback
2017-07-10 16:16:10 -07:00
Sven Dowideit
52b61aa017 Skip the default docker provisioning script, RancherOS already has a docker installed
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-07-07 16:00:55 +10:00
André Carvalho
b63e1e8b2c ssh: adds HostKeyCallback to native client config
Signed-off-by: André Carvalho <asantostc@gmail.com>
2017-07-05 10:55:56 -03:00
Eli Uriegas
1c27288680 Adds tests for versioncmp functions
Relates to issues raised in #4156

Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-06-30 10:00:19 -07:00
Stefan Scherer
efe0ca5273 Fix versioncmp for ce edition
Signed-off-by: Stefan Scherer <scherer_stefan@icloud.com>
2017-06-09 12:45:28 +02:00
Nathan LeClaire
d889abc352 Merge pull request #4082 from SvenDowideit/allow-rancheros-to-select-docker-version
Allow rancheros (all-non-b2d) to select a different Docker engine version using --engine-install-url
2017-05-31 16:02:27 -07:00
Gerard Braad
c82b52c797 Fix invalid handle for termsize in Windows
Closes #3937

Signed-off-by: Gerard Braad <me@gbraad.nl>
2017-05-31 02:14:20 +00:00
Sven Dowideit
2ea653b5e3 Allow rancheros to select a different Docker engine version using --engine-install-url
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-05-30 11:58:50 +10:00
seongkki
e8da55a0fa add purge in package action
Signed-off-by: seongkki <seongkki@cisco.com>
2017-05-26 14:26:24 -04:00
Flavio Castelli
82932c0d62 Reduce provisioning time of SUSE/openSUSE systems
Do not cause zypper to download the repository metadata on systems that
have been pre-optimized for docker usage.

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-04-05 11:59:09 +02:00
Flavio Castelli
0b3d15168d Make the SUSE/openSUSE provisioner more resilient
Do not let the provisioner fail when ran against an already initialized
machine.

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2017-04-04 18:04:14 +02:00
Nathan LeClaire
39e78dff7d Merge pull request #4002 from nathanleclaire/migrate_pkg_upgrade
Add support for upgrade to new CE edition
2017-02-27 15:14:02 -08:00
Peter Rifel
12d2c1e842 Restore systemd support for docker versions <1.12
Signed-off-by: Peter Rifel <pgrifel@gmail.com>
2017-02-22 15:06:28 -08:00
Nathan LeClaire
d3ee30be50 Add support for upgrade to new CE edition
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2017-02-22 14:55:03 -08:00
Nathan LeClaire
e095e1d031 Merge pull request #3966 from twang2218/systemd-drop-in
Use systemd drop-in for the docker-machine configuration
2017-02-22 14:15:25 -08:00
Nathan LeClaire
4dd07a7cad Merge pull request #4000 from nathanleclaire/ce_versioncmp
Revise version comparison to work with new Docker versioning
2017-02-22 14:13:27 -08:00
Nathan LeClaire
e55dfb2618 Start machine if needed for upgrade
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2017-02-22 13:54:36 -08:00
Nathan LeClaire
1504114aeb Revise version comparison to work with new Docker versioning
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2017-02-22 13:44:36 -08:00
Aaron.L.Xu
bfd2546447 fix typos in project scope
Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
2017-02-10 13:40:04 +08:00
Nathan LeClaire
f694032b45 Merge pull request #3933 from flavio/suse-provisioning-support-multiple-architectures
SUSE provisioner: support different architectures
2017-02-08 15:18:11 -08:00
Tao Wang
b6e85bfadf Use systemd drop-in for the docker-machine configuration
Using systemd drop-in for the configuration is better for inherit the
package default settings, without the need of sync the settings
between 2 projects.

Fixes https://github.com/docker/machine/issues/3963

Signed-off-by: Tao Wang <twang2218@gmail.com>
2017-01-26 01:30:00 +11:00
kaiwentan
c3d37185cc fix typo
Signed-off-by: kaiwentan <kaiwentan@harmonycloud.cn>
2017-01-19 23:28:01 +08:00
Nathan LeClaire
3f20d202a2 Revert "Add DOCKER_API_VERSION to env"
This reverts commit cc6c432ad8.

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
2017-01-17 13:47:23 -08:00
Flavio Castelli
686bda0e17 SUSE provisioner: support different architectures
Change the code to make it work also when using non-x86_64 architectures

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2016-12-20 16:56:30 +01:00
Gordon Shankman
a7cdecf69c Added exclusion of docker-* packages during yum update in RedHat provisioning. This avoids accidental upgrade of docker when it is already installed.
Signed-off-by: Gordon Shankman <gshankman@gmail.com>
2016-12-15 15:42:48 -05:00
André Carvalho
636d7988c0 provision/utils: minor refactoring
Signed-off-by: André Carvalho <asantostc@gmail.com>
2016-11-26 12:26:49 -02:00
André Carvalho
122f761911 provision: properly handle apt-get lock error
Signed-off-by: André Carvalho <asantostc@gmail.com>
2016-11-26 12:11:56 -02:00
André Carvalho
38b4df4183 libmachine/provision: wait for apt-get update lock
Signed-off-by: André Carvalho <asantostc@gmail.com>
2016-11-25 15:30:00 -02:00
André Carvalho
02428eeb06 libmachine/drivers/rpc: close plugin binary even when driver server fails
With this commit the RPC client driver tries closing the plugin binary
even when closing the driver server fails. This prevents the driver
process from entering in <defunct> state when it failed before closing.

Signed-off-by: André Carvalho <asantostc@gmail.com>
2016-11-21 14:31:22 -02:00