Commit Graph

38756 Commits

Author SHA1 Message Date
1caf76ce6b Merge pull request #321 from seemethere/bump_version_17_11_0
[17.11] bump version to 17.11.0-ce
v17.11.0-ce
2017-11-20 10:55:16 -06:00
b04cfdb05d Merge pull request #322 from seemethere/bump_changelog_17_11_0
[17.11] Update changelog for 17.11.0-ce
2017-11-20 10:55:01 -06:00
6b4bf7e9fe Update changelog for 17.11.0-ce
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-11-17 21:39:09 +00:00
5be06e64d4 bump version to 17.11.0-ce
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-11-17 21:37:55 +00:00
587f1f003b Merge pull request #304 from seemethere/bump_version_17_11_0_rc4
[17.11] bump version to 17.11.0-ce-rc4
v17.11.0-ce-rc4
2017-11-15 17:05:14 -08:00
f49db06210 Merge pull request #310 from andrewhsu/cl
[17.11] update changelog for 17.11.0-ce-rc4
2017-11-15 17:05:00 -08:00
a3eccf70ea update changelog for 17.11.0-ce-rc4
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-11-15 16:45:21 -08:00
4437f48ab7 Merge pull request #306 from andrewhsu/health
[17.11] container: protect health monitor channel
2017-11-15 16:42:12 -08:00
f271e4e545 Merge pull request #305 from seemethere/cherry_pick_engine_35484
[17.11] libcontainerd: fix leaking container/exec state
2017-11-15 16:04:52 -08:00
74f7c76b5b container: protect health monitor channel
While this code was likely called from a single thread before, we have
now seen panics, indicating that it could be called in parallel. This
change adds a mutex to protect opening and closing of the channel. There
may be another root cause associated with this panic, such as something
that led to the calling of this in parallel, as this code is old and we
had seen this condition until recently.

This fix is by no means a permanent fix. Typically, bugs like this
indicate misplaced channel ownership. In idiomatic uses, the channel
should have a particular "owner" that coordinates sending and closure.
In this case, the owner of the channel is unclear, so it gets opened
lazily. Synchronizing this access is a decent solution, but a refactor
may yield better results.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
(cherry picked from commit 5b55747a523671fa6e626848060460a48d058451)
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-11-14 15:22:41 -08:00
4ba6cdc451 libcontainerd: fix leaking container/exec state
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 6c4ce7cb6c62fb82ed2db1d4ee3a02bc5148cdee)
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-11-14 22:23:20 +00:00
98b378ad2b bump version to 17.11.0-ce-rc4
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-11-14 22:05:54 +00:00
5b4af4f712 Merge pull request #287 from andrewhsu/v
[17.11] bump version to 17.11.0-ce-rc3
v17.11.0-ce-rc3
2017-11-07 18:57:53 -08:00
65fdc1d854 Merge pull request #294 from vieux/CHANGELOG
[17.11] add changelog for 17.11
2017-11-07 18:56:40 -08:00
df9728fca7 Merge pull request #298 from andrewhsu/tar
[17.11] vendor: update to github.com/vbatts/tar-split@v0.10.2
2017-11-07 18:55:37 -08:00
3552e30c52 add changelog for 17.11
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-11-07 14:39:10 -08:00
c4eae51de5 Merge pull request #297 from andrewhsu/scra
[17.11] Set OS on scratch image and prevent panic if empty
2017-11-07 14:28:23 -08:00
ff01ab4a0a image: add import test for CVE-2017-14992
To ensure that we don't revert CVE-2017-14992, add a test that is quite
similar to that upstream tar-split test (create an empty archive with
lots of junk and make sure the daemon doesn't crash).

Signed-off-by: Aleksa Sarai <asarai@suse.de>
(cherry picked from commit 0a13f827a10d3bf61744d9b3f7165c5885a39c5d)
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-11-07 14:13:58 -08:00
4cd44b4bf2 internal: testutil: add DevZero helper
This helper acts like /dev/zero (outputs \x00 indefinitely) in an
OS-independent fashion. This ensures we don't need to special-case
around Windows in tests that want to open /dev/zero.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
(cherry picked from commit 2f8d3e1c33f77187c68893803018756d43daff15)
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-11-07 14:13:58 -08:00
b25cbcb9af vendor: update to github.com/vbatts/tar-split@v0.10.2
Update to the latest version of tar-split, which includes a change to
fix a memory exhaustion issue where a malformed image could cause the
Docker daemon to crash.

  * tar: asm: store padding in chunks to avoid memory exhaustion

Fixes: CVE-2017-14992
Signed-off-by: Aleksa Sarai <asarai@suse.de>
(cherry picked from commit e0ff7cccc3cac73da41ec9ef007b0e4e97c55d01)
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-11-07 14:13:58 -08:00
d0eae44a32 Merge pull request #295 from andrewhsu/sk
[17.11] update vndr of swarmkit to bbcec9b9
2017-11-07 12:03:22 -08:00
c2888f5973 Set OS on scratch image and prevent panic if empty
Signed-off-by: John Stephens <johnstep@docker.com>
(cherry picked from commit a97817b673cbd3bfaf6e752282c4992ac43ff594)
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-11-07 10:52:36 -08:00
2d28b718bd Merge pull request #292 from thaJeztah/17.11-backport-improve-containerd-version-parsing
[17.11] Use containerd API to get version
2017-11-06 17:40:42 -08:00
75d1e697a5 Fix error message for TestSwarmVolumePlugin
Signed-off-by: Nishant Totla <nishanttotla@gmail.com>
2017-11-06 17:22:50 -08:00
fa6c13b518 Merge pull request #296 from andrewhsu/ln
[17.11] update vndr of libnetwork to 6bbcd1b
2017-11-06 16:48:13 -08:00
ada8d460c1 Merge pull request #290 from thaJeztah/backport-mask-scsi
[17.11] Add /proc/scsi to masked paths
2017-11-06 15:37:25 -08:00
1894fce853 Merge pull request #293 from thaJeztah/17.11-backport-stream-ctx-fix
[17.11] builder: fix long stream sync
2017-11-06 13:33:57 -08:00
40dc614b99 Merge pull request #289 from andrewhsu/dl
[17.11]  cluster: avoid recursive readlock on swarm info
2017-11-06 12:57:40 -08:00
6aaa5504a2 update vndr of libnetwork to 6bbcd1b
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-11-06 12:48:57 -08:00
f41a4e7f46 update vndr of swarmkit to bbcec9b9
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-11-06 12:23:21 -08:00
36134084bc builder: fix long stream sync
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit c6703b722e1c0914342d61ca6af77aea93150873)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-11-06 14:12:07 +01:00
90d2a2e274 Use containerd API to get version
The `docker info` code was shelling out to obtain the
version of containerd (using the `--version` flag).

Parsing the output of this version string is error-prone,
and not needed, as the containerd API can return the
version.

This patch adds a `Version()` method to the containerd Client
interface, and uses this to get the containerd version.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit fec2b144feaaa18998ec2ed34c9bc843c4c29abd)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-11-06 14:05:37 +01:00
b524364a2f Add /proc/scsi to masked paths
This is writeable, and can be used to remove devices. Containers do
not need to know about scsi devices.

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
(cherry picked from commit a21ecdf3c8a343a7c94e4c4d01b178c87ca7aaa1)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2017-11-06 13:58:25 +01:00
84070b5f49 cluster: avoid recursive readlock on swarm info
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>(cherry picked from commit ee1be71e9dc52db8a7ac951ba96f18a5c894806a)
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-11-03 15:58:11 -07:00
2757141770 bump version to 17.11.0-ce-rc3
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-11-03 10:31:46 -07:00
d7062e5443 Merge pull request #285 from seemethere/bump_17110_rc2
[17.11] bump version to 17.11.0-ce-rc2
v17.11.0-ce-rc2
2017-11-01 12:14:22 -07:00
2b39e3eb1b Merge pull request #284 from seemethere/update_changelog_17110_rc2
[17.11] Update changelog for 17.11.0 rc2
2017-11-01 12:14:00 -07:00
019b6fc6ff Merge pull request #286 from andrewhsu/st
[17.11] backport Add containerd static compile
2017-11-01 12:13:29 -07:00
1d7a951815 Add containerd static compile
Fixes #35349

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
(cherry picked from commit 007db062f0c39bf31e1150aa26d045778ab7d24e)
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-10-31 14:11:42 -07:00
7c931da69a Merge pull request #283 from seemethere/add_artful
[17.11] Add Ubuntu Artful (17.10)
2017-10-31 13:48:25 -07:00
c87c16c585 Update changelog to include note about Artful
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-10-31 13:33:40 -07:00
7a42750bbc bump version to 17.11.0-ce-rc2
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-10-31 13:31:15 -07:00
419eadcc09 Update to 1.8.5
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
(cherry picked from commit c16053e90143cd8a9a559b749407d938f0cb4456)
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-10-31 13:20:54 -07:00
a241bc8c28 Add Ubuntu 17.10, Artful
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
(cherry picked from commit 1468941a50dba7e0a82a01cb938338041f028ef9)
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2017-10-31 13:20:54 -07:00
df7b627909 Merge pull request #282 from andrewhsu/v
[17.11] bump version to 17.11.0-ce-rc1
v17.11.0-ce-rc1
2017-10-30 17:24:29 -07:00
3d4e607150 Merge pull request #281 from andrewhsu/c
[17.11] update changelog for 17.11.0-ce-rc1
2017-10-30 17:00:03 -07:00
e2e7ecf1d7 update changelog for 17.11.0-ce-rc1
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-10-30 16:59:25 -07:00
f7aa41c4f5 Merge pull request #279 from andrewhsu/sk
[17.11] skip tests for now that are known to need adjustment
2017-10-30 16:57:21 -07:00
79e752a8a2 skip test DockerSuite.TestRmiImageIDForceWithRunningContainersAndMultipleTags
This integration-cli test needs to be fixed for change in `rmi -f`
behaviour.

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-10-30 15:41:04 -07:00
d17cdf8c45 skip test DockerSuite.TestRmiContainerImageNotFound
Skipping integration-cli test because it should be moved to an API test.

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2017-10-30 15:41:04 -07:00