Commit Graph

42785 Commits

Author SHA1 Message Date
6064691b74 Merge component 'engine' from git@github.com:docker/engine 18.09 2019-03-09 00:52:55 +00:00
9c47f77927 Merge pull request #169 from thaJeztah/18.09_bump_libnetwork2
[18.09] bump libnetwork 4725f2163fb (bump_18.09 branch)
Upstream-commit: d51db2f20b9cd3faf570714b65fe2e359f1ecff9
Component: engine
2019-03-08 14:45:06 -08:00
4b269555e0 Merge pull request #171 from thaJeztah/18.09_backport_fix_build_session_test
[18.09 backport] Fix TestBuildWithSession, TestBuildSquashParent  using wrong daemon during test
Upstream-commit: c97602ef9903fd18e65b341a7359287e684cde84
Component: engine
2019-03-08 14:43:42 -08:00
b9167a9818 Fix TestBuildWithSession, TestBuildSquashParent using wrong daemon during test
These tests were spinning up a new daemon, but after the daemon was spun up,
the default test-daemon was used by the client.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 9a3911ced83331b6efe698528a4480bd5ff3d7a6)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 605bc1ffc5adc5a3968ebe7a58060d2542cc28f3
Component: engine
2019-03-06 22:11:22 +01:00
5e4939ab2b Merge component 'engine' from git@github.com:docker/engine 18.09 2019-03-06 17:12:49 +00:00
465705f78f Merge pull request #164 from thaJeztah/18.09_backport_esc_1090
[18.09 backport] set bigger grpc limit for GetConfigs api
Upstream-commit: ad59cba5a02bf22f4e8e56c5e9c02476d31f2ced
Component: engine
2019-03-06 08:14:26 -08:00
361573fb13 Merge pull request #166 from thaJeztah/18.09_backport_tarstream_release
[18.09 backport] layer/layer_store: ensure NewInputTarStream resources are released
Upstream-commit: e2ddb3a2fff8da4a28109d54908dc4479026dec4
Component: engine
2019-03-06 08:12:18 -08:00
6e44ea5ca3 Merge pull request #167 from thaJeztah/18.09_backport_cp_longname
[18.09 backport] pkg/archive:CopyTo(): fix for long dest filename
Upstream-commit: 2f867e6b4cbdb9844d7b6548c9b341b1e8452f33
Component: engine
2019-03-06 08:07:18 -08:00
006a8c7333 [18.09] bump libnetwork 4725f2163fb (bump_18.09 branch)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 8c5188801646046568a710d55f8df4686c98dbe1
Component: engine
2019-03-05 22:57:37 +01:00
ddb553c9c7 pkg/archive:CopyTo(): fix for long dest filename
As reported in docker/for-linux/issues/484, since Docker 18.06
docker cp with a destination file name fails with the following error:

> archive/tar: cannot encode header: Format specifies USTAR; and USTAR cannot encode Name="a_very_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx_long_filename_that_is_101_characters"

The problem is caused by changes in Go 1.10 archive/tar, which
mis-guesses the tar stream format as USTAR (rather than PAX),
which, in turn, leads to inability to specify file names
longer than 100 characters.

This tar stream is sent by TarWithOptions() (which, since we switched to
Go 1.10, explicitly sets format=PAX for every file, see FileInfoHeader(),
and before Go 1.10 it was PAX by default). Unfortunately, the receiving
side, RebaseArchiveEntries(), which calls tar.Next(), mistakenly guesses
header format as USTAR, which leads to the above error.

The fix is easy: set the format to PAX in RebaseArchiveEntries()
where we read the tar stream and change the file name.

A unit test is added to prevent future regressions.

NOTE this code is not used by dockerd, but rather but docker cli
(also possibly other clients), so this needs to be re-vendored
to cli in order to take effect.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
(cherry picked from commit f55a4176febbd0dffd6e5eb65beb70bc32912d0b)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 989e7f5d3a3f40ebb936376245b770f766ea42e9
Component: engine
2019-03-02 16:33:19 +01:00
78d7be4aeb layer/layer_store: ensure NewInputTarStream resources are released
In applyTar, if the driver's ApplyDiff returns an error, the function
returns early without calling io.Copy.

As a consequence, the resources (a goroutine and some buffers holding
the uncompressed image, the digest, etc...) allocated or referenced by
NewInputTarStream above aren't released, as the worker goroutine only
finishes when it finds EOF or a closed pipe.

Signed-off-by: Sergio Lopez <slp@redhat.com>
(cherry picked from commit 5846db10af9fb37061ab92a07c3d82fbea92b2e0)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: f660ef2c25590f21fdd10357c08a542a4876d6c3
Component: engine
2019-03-01 23:14:27 +01:00
afc2d3e1e5 Merge pull request #588 from seemethere/fix_link
[18.09 Fix link to release notes to be an actual link
2019-03-01 13:21:42 -08:00
cfc168b856 Fix link to release notes to be an actual link
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
2019-03-01 20:53:52 +00:00
53943599d3 Merge component 'packaging' from git@github.com:docker/docker-ce-packaging 18.09 2019-03-01 13:01:06 +00:00
dce2ceb9af Merge pull request #306 from dave-tucker/18.09
[18.09] [TAR-465] Jenkinsfile: Test the correct branch
Upstream-commit: a67da74db0a25761458db2c2dc06587df531dca8
Component: packaging
2019-03-01 09:47:27 +00:00
dd0e4702ff [TAR-465] Jenkinsfile: Test the correct branch
This commit ensures that we test the correct branches of Docker
when making packaging changes.

Signed-off-by: Dave Tucker <dt@docker.com>
(cherry picked from commit 1ef9fb3f0b2b8016b50c6c71f2d14bea16faff35)
Upstream-commit: 5e59ff8a5e8ea44444aa4f22a8baf12e091bcc76
Component: packaging
2019-03-01 09:22:20 +00:00
774a1f4eee Merge pull request #587 from andrewhsu/1809ga
[18.09] bump ver 18.09.3
2019-02-27 21:50:49 -08:00
d1cde99c16 bump ver 18.09.3
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2019-02-28 02:42:51 +00:00
d234d63bd9 Merge component 'cli' from git@github.com:docker/cli 18.09 2019-02-27 20:37:05 +00:00
7e985fdbcc set bigger grpc limit for GetConfigs api
Signed-off-by: Dani Louca <dani.louca@docker.com>
(cherry picked from commit 3fbbeb703c1d04e9eb723459960fbfc7f3bbfc40)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 5f40e17cfd2474776088a97552fce7d5a9abe549
Component: engine
2019-02-27 19:01:12 +01:00
eca25928d3 Merge pull request #1694 from thaJeztah/18.09_backport_nolibtool
[18.09 backport] Update PKCS11 library
Upstream-commit: 9352be5341
Component: cli
2019-02-27 08:39:46 -08:00
fe586e6b03 Update PKCS11 library
The new version no longer links to libltdl which simplifies build
and dependencies.

See https://github.com/theupdateframework/notary/pull/1434

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
(cherry picked from commit cb3e55bf58)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: b4f607fb4f
Component: cli
2019-02-26 13:17:22 +01:00
516e0938c4 Merge pull request #586 from andrewhsu/1809rc1
[18.09] bump ver 18.09.3-rc1
2019-02-25 21:15:23 -08:00
9a547e9803 Merge component 'engine' from git@github.com:docker/engine 18.09 2019-02-26 01:02:02 +00:00
730b7c7c36 Merge pull request #163 from thaJeztah/18.09_backport_busyboxstage2
[18.09 backport] Windows: Bump busybox to v1.1
Upstream-commit: 8c91e9672cc8ab2a7f94ed38932a13fe1298d3fb
Component: engine
2019-02-25 16:29:56 -08:00
485445e58c bump ver 18.09.3-rc1
Signed-off-by: Andrew Hsu <andrewhsu@docker.com>
2019-02-25 22:05:29 +00:00
9a1f0b6385 Windows: Bump busybox to v1.1
Signed-off-by: John Howard <jhoward@microsoft.com>

This is a follow-on from https://github.com/moby/moby/pull/38277
but had to be done in a couple of stages to ensure that CI didn't
break. v1.1 of the busybox image is now based on a CMD of "sh"
rather than using an entrypoint. And it also uses the bin directory
rather than `c:\busybox`. This makes it look a lot closer to the
Linux busybox image, and means that a couple of Windows-isms in
CI tests can be reverted back to be identical to their Linux
equivalents.

(cherry picked from commit 561e0f6b7fc256c160292b32695cf1d6150741db)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 613c2f27ed2e7d65474c2f3e786d9e24e757d99d
Component: engine
2019-02-25 10:44:48 +01:00
24d84781fd Merge component 'engine' from git@github.com:docker/engine 18.09 2019-02-23 21:04:00 +00:00
24e88ff12b Merge pull request #153 from thaJeztah/18.09_backport_update_containerd_1.2.4
[18.09 backport] update containerd 1.2.4, runc 6635b4f
Upstream-commit: e4b8756784220ea1a580ec4bcbfcd8b074c5ca9a
Component: engine
2019-02-23 11:09:18 -08:00
2a10e07767 Merge component 'engine' from git@github.com:docker/engine 18.09 2019-02-23 01:04:09 +00:00
0fc0fbc929 Update containerd runtime 1.2.4
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 26413ede5781cd13d62cbdaf4671d056ca8bba83)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: ffeebb217c1da556c2dc686fbff80cbb5d74e564
Component: engine
2019-02-23 01:49:38 +01:00
c5e4f537fe Update runc to 6635b4f (fix CVE-2019-5736)
- Fixes a vulnerability in runc that allows a container escape (CVE-2019-5736)
  6635b4f0c6,
- Includes security fix for `runc run --no-pivot` (`DOCKER_RAMDISK=1`):
  28a697cce3
  (NOTE: the vuln is attackable only when `DOCKER_RAMDISK=1` is set && seccomp is disabled)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit f03698b69a7777b8d30b9c5897504f8704b87676)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: c7fca75c035ba0b750f46a9676a376f8e4409f15
Component: engine
2019-02-23 01:49:25 +01:00
1f1e19daa1 Revert "Merge pull request #240 from seemethere/bundle_me_up_1809"
This reverts commit eb137ff1765faeb29c2d99025bfd8ed41836dd06, reversing
changes made to a79fabbfe84117696a19671f4aa88b82d0f64fc1.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 88330c9aac5556d0abc7a5afcb4d906604a07fa2
Component: engine
2019-02-23 01:49:12 +01:00
cdacf38efa Merge pull request #154 from thaJeztah/18.09_backport_fix_stale_container_on_start
[18.09 backport] Delete stale containerd object on start failure
Upstream-commit: ba8664cc2219c3ed75d3f4306569edf8b7b97a98
Component: engine
2019-02-22 13:52:47 -08:00
b8b285ce9b Merge component 'engine' from git@github.com:docker/engine 18.09 2019-02-22 21:04:02 +00:00
878b9f56bf Merge pull request #162 from thaJeztah/18.09_backport_38636_fix_nil_pointer_dereference
[18.09 backport] Fix nil pointer derefence on failure to connect to containerd
Upstream-commit: 24c6c3eb52e04835da52efe940fef725bed445ee
Component: engine
2019-02-22 10:34:11 -08:00
8af9b67ca8 Fix nil pointer derefence on failure to connect to containerd
Signed-off-by: Simão Reis <smnrsti@gmail.com>
(cherry picked from commit 3134161be3f578ff009673786684b3abbe9abb3f)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 0841c61862e66c47ec735ad9de0039b806de37aa
Component: engine
2019-02-22 13:22:29 +01:00
fca49318b4 Merge component 'engine' from git@github.com:docker/engine 18.09 2019-02-22 05:12:30 +00:00
893afbfb6f Merge component 'engine' from git@github.com:docker/engine 18.09 2019-02-22 01:04:13 +00:00
c835df1d14 Merge pull request #160 from thaJeztah/18.09_backport_add_missing_char_device_mode
[18.09 backport] Graphdriver: fix "device" mode not being detected if "character-device" bit is set
Upstream-commit: 2e4c5c57c30522dc4b33b5cd5371f294ae3fee82
Component: engine
2019-02-21 17:01:40 -08:00
761df7a017 Merge pull request #135 from thaJeztah/18.09_backport_xattr_fix
[18.09 backport] Ignore xattr ENOTSUP errors on copy (fixes #38155)
Upstream-commit: db7a8cb7ba2de79d68ec73c158571319f82ba212
Component: engine
2019-02-21 15:00:20 -08:00
50e6ee21b3 Merge component 'engine' from git@github.com:docker/engine 18.09 2019-02-21 05:04:08 +00:00
2012f67a6d Merge pull request #143 from thaJeztah/18.09_backport_skip_kmem_tests_on_rhel
[18.09 backport] Skip kernel-memory tests on RHEL/CentOS daemons
Upstream-commit: 6b0ba3745d073717887ead912c3c7dea4c99fc45
Component: engine
2019-02-20 18:23:09 -08:00
fb81d8fe00 Merge pull request #158 from thaJeztah/18.09_backport_save_the_environment
[18.09 backport] Fix: plugin-tests discarding current environment
Upstream-commit: 5c15222f0f9381fad6d27dc1374ed2af417d16f7
Component: engine
2019-02-20 18:11:25 -08:00
1a1a62b3bf Merge pull request #157 from thaJeztah/18.09_backport_fix_test_int
[18.09 backport] make test-integration: use correct dockerd binary
Upstream-commit: f935add7583e7741c43f110ba354957730b78d4c
Component: engine
2019-02-20 18:10:26 -08:00
6a5c5805ac Merge pull request #159 from thaJeztah/18.09_backport_even_more_names_redux
[18.09 backport] Makes a few modifications to the name generator.
Upstream-commit: 3c1fa928cbb08a6e7ee72bec817c7294926b873d
Component: engine
2019-02-20 18:08:52 -08:00
811028792b Merge pull request #161 from kolyshkin/18.09-backport-38423
[18.09] Backport "Disabled these tests on s390x and ppc64le:"
Upstream-commit: 37cf1cd68e27fab10f93f602b0fdd367f89eb360
Component: engine
2019-02-20 18:06:18 -08:00
d4fa1ee60f Merge pull request #155 from thaJeztah/18.09_backport_override_validate
[18.09 backport] Allow overriding repository and branch in validate scripts, and no need to git fetch in CI
Upstream-commit: 02c953cf36fa4f017be402451106d9c273023b4f
Component: engine
2019-02-20 18:05:25 -08:00
0db790cc19 Merge pull request #149 from thaJeztah/18.09_backport_fix_restart
[18.09 backport] keep old network ids
Upstream-commit: 9dc0488d1c0f424368cf8af56006acc46a846679
Component: engine
2019-02-20 18:03:40 -08:00
c9de39ca94 Disabled these tests on s390x and ppc64le:
- TestAPISwarmLeaderElection
- TestAPISwarmRaftQuorum
- TestSwarmClusterRotateUnlockKey

because they are known to be flaky.

Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
(cherry picked from commit 02157c638ba0c325d8fd1debc1678e7e99eacfc1)
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
Upstream-commit: 278f1a130b66de23f07e472792b70b640f777666
Component: engine
2019-02-20 13:51:17 -08:00