Граф коммитов

54308 Коммитов

Автор SHA1 Сообщение Дата
Aaron Lehmann d7deea9e37 Fix missing parent info case in MatchesUsingParentResults
Unfortunately, this check was missing in the original version. It could
cause a positive match to be overwritten by checking parent dirs.

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
Upstream-commit: 55da5245ded6228afc5cf40e6cf18dc50d8cf0ff
Component: engine
2021-11-26 10:22:19 -08:00
CrazyMax e1c92c23dd update buildx to v0.7.1
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Upstream-commit: d8c58afb5087c92dd29d94057de2b9e671edda33
Component: packaging
2021-11-26 16:58:09 +01:00
GordonTheTurtle d87c49ca66 Merge component 'engine' from git@github.com:moby/moby master 2021-11-24 21:34:26 +00:00
Sebastiaan van Stijn 458693ef4c Merge pull request #43037 from aaronlehmann/pattern-matcher-parent-results
pkg/fileutils: Track incremental pattern match results against each pattern
Upstream-commit: 93d560d5b3b0249f798243b52310128b7e1d163c
Component: engine
2021-11-24 18:38:51 +01:00
Aaron Lehmann 8083d4fbca Adjust deprecation comments
Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
Upstream-commit: 0f1b68df1610e0b377f16cd0cf72e226ade1dce5
Component: engine
2021-11-24 07:53:10 -08:00
GordonTheTurtle e43b602fe0 Merge component 'engine' from git@github.com:moby/moby master 2021-11-24 05:34:09 +00:00
Samuel Karp ba7852d585 Upstream-commit: d44ccafefaa4a88e927089c459f05d1cadefb42d
Component: engine
2021-11-23 18:54:11 -08:00
Samuel Karp 4e51a01546 distribution: validate blob type
Signed-off-by: Samuel Karp <skarp@amazon.com>
Upstream-commit: 7c216bcabea3bcf66e105a6a0af9ba4c31cae228
Component: engine
2021-11-23 17:19:01 -08:00
GordonTheTurtle 26f0c9e003 Merge component 'engine' from git@github.com:moby/moby master 2021-11-23 13:33:57 +00:00
Sebastiaan van Stijn 0d9275836a Merge pull request #43042 from jelipo/fix_image_spec
fix image spec JSON example
Upstream-commit: 00d8a3bb516ad1e14c56ccdfeb70736bbeb0ba49
Component: engine
2021-11-23 11:00:11 +01:00
haining.cao 74b7036260 fix image spec JSON example
Signed-off-by: haining.cao <haining.cao@daocloud.io>
Upstream-commit: 715e78631d727ac6db9f08a8537a82aa56919f08
Component: engine
2021-11-22 23:37:23 +08:00
Aaron Lehmann b07e283193 pkg/fileutils: Track incremental pattern match results against each pattern
The existing code does not correctly handle the case where a file
matches one of the patterns, but should not match overall because of an
exclude pattern that applied to a parent directory (see
https://github.com/docker/buildx/issues/850).

Fix this by independently tracking the results of matching against each
pattern. A file should be considered to match any pattern that matched a
parent dir.

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
Upstream-commit: 4555d3aa543ad54f0f0658337022632a26d7dd9a
Component: engine
2021-11-19 15:58:13 -08:00
GordonTheTurtle 41b041c174 Merge component 'engine' from git@github.com:moby/moby master 2021-11-19 13:34:19 +00:00
Sebastiaan van Stijn 8325110f08 vendor: github.com/Microsoft/hcsshim v0.8.23
full diff: https://github.com/Microsoft/hcsshim/compare/v0.8.22...v0.8.23

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: a715bfb857436c2f6601621f99d5fa831a062746
Component: engine
2021-11-19 13:50:13 +01:00
Sebastiaan van Stijn 0ed69b0907 vendor: github.com/containerd/ttrpc v1.1.0
full diff: https://github.com/containerd/ttrpc/compare/v1.0.2...v1.1.0

- client: Handle sending/receiving in separate goroutines
- Return Unimplemented when services or methods are not implemented
- go.mod: sirupsen/logrus v1.7.0
- go.mod: update dependencies
  - go.mod: github.com/gogo/protobuf v1.3.2
  - go.mod: google.golang.org/grpc v1.27.1
  - go.mod: google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63
  - go.mod: github.com/prometheus/procfs v0.6.0
- replace pkg/errors
- Rename branch from master to main
- Use GitHub Actions for CI
- Make "go test" and "go build" work on macOS
- Add protoc-gen-go-ttrpc

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: cbb4aed0b4e5769ac9a91003670f8e5183b239be
Component: engine
2021-11-19 13:48:43 +01:00
Sebastiaan van Stijn c8d4f80e54 Merge pull request #43031 from thaJeztah/fix_TestConntrackFlowsLeak_v1
TestConntrackFlowsLeak: use busybox "nc"
Upstream-commit: ea0f3dc8f4466e456b74a079a3038bbf4e25e57e
Component: engine
2021-11-19 13:39:01 +01:00
Sebastiaan van Stijn 285c5c2c5b Merge pull request #42980 from thaJeztah/bump_sys
vendor: github.com/moby/sys/mount v0.3.0, mountinfo v0.5.0, signal v0.6.0, symlink v0.2.0
Upstream-commit: f06314fa842abdb76eafa0f3d204b02cc1290b0c
Component: engine
2021-11-19 13:23:51 +01:00
GordonTheTurtle 9a100ab846 Merge component 'engine' from git@github.com:moby/moby master 2021-11-19 09:34:21 +00:00
Sebastiaan van Stijn 801df849ef vendor: github.com/moby/sys/mount v0.3.0, mountinfo v0.5.0, signal v0.6.0, symlink v0.2.0
full diff: https://github.com/moby/sys/compare/signal/v0.5.0...signal/v0.6.0

Modules:

- github.com/moby/sys/mount v0.3.0
- github.com/moby/sys/mountinfo v0.5.0
- github.com/moby/sys/signal v0.6.0
- github.com/moby/sys/symlink v0.2.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: ce25968008b0d2d958ec5c5c5a958b86dbcb1d8a
Component: engine
2021-11-19 09:56:37 +01:00
Sebastiaan van Stijn 099122fda7 vendor: golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359
full diff: 63515b42dc...69cdffdb93

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 875969251b6dd886a5c3114c9d96701a56c8645d
Component: engine
2021-11-19 09:53:57 +01:00
Sebastiaan van Stijn 135b93a91e TestConntrackFlowsLeak: use busybox "nc"
The appropriate/nc image was last built over 6 years ago, and uses the
deprecated v2 schema 1 format.
https://github.com/appropriate/docker-nc/tree/master/latest

The image is just a plain "apk install" of netbsd-netcat, but was added
in 1c4286bcffcdc6668f84570a2754c78cccbbf7e1, because at the time the
busybox nc had some bugs.

These appear to be resolved, so we can use the busybox nc, from the
frozen images.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 6d92d2c7c4e32e840d86cfdfafa0b9bb980ba62c
Component: engine
2021-11-19 09:27:12 +01:00
Sebastiaan van Stijn c96f835421 Merge pull request #43017 from akerouanton/fix-42468
Fix flaky TestPortMappingV6Config
Upstream-commit: 4fafb27799145fa2f3b58503452a2f33864b7ab9
Component: engine
2021-11-19 09:20:14 +01:00
GordonTheTurtle 777f24a40c Merge component 'engine' from git@github.com:moby/moby master 2021-11-19 01:33:35 +00:00
Tianon Gravi 4f9172f4d0 Merge pull request #43032 from thaJeztah/windows_containerd_1.5.8
Dockerfile.windows: update containerd binary to v1.5.8
Upstream-commit: 7ae9ca749bceb22f40bd2ab099656891663db521
Component: engine
2021-11-18 16:55:01 -08:00
GordonTheTurtle 26bb15ea2a Merge component 'engine' from git@github.com:moby/moby master 2021-11-18 21:35:33 +00:00
Sebastiaan van Stijn 7ab3b0589f Merge pull request #43029 from thaJeztah/remove_v1_push_tests
integration-cli: remove manifest v2 schema 1 push tests
Upstream-commit: c0f93c746e51d23d7817da9eeaad8efa3c3db689
Component: engine
2021-11-18 21:52:21 +01:00
Sebastiaan van Stijn c6959cce7a Dockerfile.windows: update containerd binary to v1.5.8
This was accidentally forgotten in aef782f34844e70c79481cbecd35b01c9bb25ffa

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: c3537ec24ca67171f57ba0d5e4c182685ba5e4ad
Component: engine
2021-11-18 21:48:30 +01:00
Brian Goff a47d5f09c3 Merge pull request #42993 from thaJeztah/bump_hcsshim
vendor: github.com/Microsoft/hcsshim v0.8.22
Upstream-commit: 78fd4d3f2f54a198e899e5ad6775b60eb926d5f7
Component: engine
2021-11-18 11:31:25 -08:00
Sebastiaan van Stijn 99eb0280f1 integration-cli: remove manifest v2 schema 1 push tests
Pushing manifest v2, schema 1 images has been deprecated in commit
6302dbbf46dd40d824238487a5afece551d53293 (docker 20.10). It's still used in
some tests to provision a legacy registry to test _pulling_ legacy images
(which is still "supported"), but we should no longer have to validate pushing
for other scenarios.

This patch removes the schema 1 push tests, and inlines the code that was
extracted in non-exported functions (for them to be shared between schema 2 and
schema 1 tests).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 238180d292a27a4b7b7bb669867e04236b4acc43
Component: engine
2021-11-18 12:26:13 +01:00
GordonTheTurtle 7d469b7e2a Merge component 'engine' from git@github.com:moby/moby master 2021-11-18 01:33:43 +00:00
Sebastiaan van Stijn 5d967f4753 Merge pull request #43026 from thaJeztah/update_image_spec
vendor: github.com/opencontainers/image-spec v1.0.2
Upstream-commit: a17f288e65b45a9f4aa54526817ba83220a59709
Component: engine
2021-11-18 01:09:55 +01:00
Sebastiaan van Stijn d499af808a vendor: github.com/opencontainers/image-spec v1.0.2
- Bring mediaType out of reserved status
- specs-go: adding mediaType to the index and manifest structures

full diff: https://github.com/opencontainers/image-spec/compare/v1.0.1...v1.0.2

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: cef0a7c14efdef430b1e84140bb68dc3e4c4f8e7
Component: engine
2021-11-18 00:00:05 +01:00
Sebastiaan van Stijn 74ad45c2f2 Merge pull request #43025 from thaJeztah/containerd_1.5.8
Update containerd binary and vendor to v1.5.8
Upstream-commit: 40e6c2ad34dce9a47e3a282d7e89ab9aee5ac09d
Component: engine
2021-11-17 23:50:13 +01:00
Sebastiaan van Stijn 4be2c60ceb vendor: github.com/containerd/containerd v1.5.8
contains a mitigation for CVE-2021-41190 as well as several fixes and updates.

full diff: https://github.com/containerd/containerd/compare/v1.5.7...v1.5.8

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 458b4aae197aee829075c4f0a883ae689f966f29
Component: engine
2021-11-17 21:40:04 +01:00
Sebastiaan van Stijn 636bdbdb47 update containerd binary to v1.5.8
The eighth patch release for containerd 1.5 contains a mitigation for CVE-2021-41190
as well as several fixes and updates.

Notable Updates

* Handle ambiguous OCI manifest parsing
* Filter selinux xattr for image volumes in CRI plugin
* Use DeactiveLayer to unlock layers that cannot be renamed in Windows snapshotter
* Fix pull failure on unexpected EOF
* Close task IO before waiting on delete
* Log a warning for ignored invalid image labels rather than erroring
* Update pull to handle of non-https urls in descriptors

See the changelog for complete list of changes

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: aef782f34844e70c79481cbecd35b01c9bb25ffa
Component: engine
2021-11-17 21:25:05 +01:00
GordonTheTurtle c65bf9f391 Merge component 'cli' from git@github.com:docker/cli master 2021-11-17 17:02:53 +00:00
Sebastiaan van Stijn ad797cfeb3 Merge pull request #3320 from crazy-max/gha-e2e
GitHub Actions e2e tests
Upstream-commit: 9bc104eff0798097954f5d9bc25ca93f892e63f5
Component: cli
2021-11-17 17:50:14 +01:00
CrazyMax 13cc6dcb05 GitHub Actions e2e tests
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Upstream-commit: 62ea2bf1aa5699095111953e3a401d3299fe07e9
Component: cli
2021-11-17 17:18:25 +01:00
GordonTheTurtle 98df7e3bc6 Merge component 'engine' from git@github.com:moby/moby master 2021-11-16 21:36:45 +00:00
Brian Goff f544c4b0b7 Merge pull request #43021 from thaJeztah/bump_selinux
vendor: github.com/opencontainers/selinux v1.9.1
Upstream-commit: c09dcfc6931f5cc8b5e1b1fb3f19fb3ddd60b1c3
Component: engine
2021-11-16 10:50:45 -08:00
GordonTheTurtle 54df1eb033 Merge component 'packaging' from git@github.com:docker/docker-ce-packaging master 2021-11-16 13:34:44 +00:00
Sebastiaan van Stijn c97a2a12a0 Merge pull request #598 from thaJeztah/update_buildx_0.7
[master] update buildx to v0.7.0
Upstream-commit: 66a4e433736bfcba6fe8e6a28b5445284d369b47
Component: packaging
2021-11-16 12:44:12 +01:00
GordonTheTurtle a1a764d031 Merge component 'engine' from git@github.com:moby/moby master 2021-11-16 09:33:40 +00:00
Sebastiaan van Stijn 364a9cf31c vendor: github.com/opencontainers/selinux v1.9.1
full diff: https://github.com/opencontainers/selinux/compare/v1.8.2...v1.9.1

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 615ff224371c110ce43df76e452ac10f592de5a1
Component: engine
2021-11-16 10:33:00 +01:00
Sebastiaan van Stijn 3d7e4bab10 update buildx to v0.7.0
release notes: https://github.com/docker/buildx/releases/tag/v0.7.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 756cf4ab3b20c6a27939b3e93b2098404a666fb1
Component: packaging
2021-11-16 09:59:36 +01:00
Albin Kerouanton 093ce9307d Fix flaky TestPortMappingV6Config
Since moby/libnetwork#2635 has been merged, allocatePortsInternal()
checks if IPv6 is enabled by calling IsV6Listenable(). This function
calls `net.Listen("tcp6", "[::1]:0")` and returns false when
net.Listen() fails.

TestPortMappingV6Config() starts by setting up a new net ns to run into
it. The loopback interface is not bring up in this net ns, thus
net.Listen() fails and IsV6Listenable() returns false. This change takes
care of bringing loopback iface up right after moving to the new net ns.

This test has been reported has flaky on s390x in #42468. For some
reason, this test seems to be consistently green on the CI (on amd64
arch) and when running `hack/test/unit` locally. However it consistently
fails when running `TESTFLAGS='-shuffle on' hack/test/unit` locally.

Signed-off-by: Albin Kerouanton <albinker@gmail.com>
Upstream-commit: c721bad8ccddeb353e71d4b4b26ad878d1ae8bee
Component: engine
2021-11-16 09:37:34 +01:00
Sebastiaan van Stijn 8bb9889ab4 Merge pull request #42996 from robert-shade/rshade/fix-windows-reserved-names
Fix windows rxReservedNames
Upstream-commit: e9ab1d425638af916b84d6e0f7f87ef6fa6e6ca9
Component: engine
2021-11-16 09:35:57 +01:00
GordonTheTurtle 1f789834ac Merge component 'engine' from git@github.com:moby/moby master 2021-11-16 05:33:19 +00:00
Akihiro Suda cba0c1183a Merge pull request #42785 from sanchayanghosh/42753-fix-host.internal
Fixed docker.internal.gateway not displaying properly on live restore
Upstream-commit: 40ccedd61b9d8b64fc75d64cd57b9ee35c769632
Component: engine
2021-11-16 13:26:20 +09:00
GordonTheTurtle e1f1db1891 Merge component 'engine' from git@github.com:moby/moby master 2021-11-15 21:34:51 +00:00