Commit Graph

49621 Commits

Author SHA1 Message Date
Sebastiaan van Stijn
fbbda057ac update containerd binary to v1.7.20
Update the containerd binary that's used in CI and for the static packages.

release notes: https://github.com/containerd/containerd/releases/tag/v1.7.20
full diff: https://github.com/containerd/containerd/compare/v1.7.18...v1.7.19

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-19 02:32:27 +02:00
Sebastiaan van Stijn
cb7c976456 Merge pull request #48177 from thaJeztah/relax_pr_check
gha: check-pr-branch: verify major version only
2024-07-19 02:25:50 +02:00
Sebastiaan van Stijn
f460110ef5 gha: check-pr-branch: verify major version only
We'll be using release branches for minor version updates, so instead
of (e.g.) a 27.0 branch, we'll be using 27.x and continue using the
branch for minor version updates.

This patch changes the validation step to only compare against the
major version.

Co-authored-by: Cory Snider <corhere@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-19 01:20:40 +02:00
Sebastiaan van Stijn
f39409f80d Merge pull request #48078 from vvoland/c8d-buildkit-tag-event
c8d/build: Log `image tag` event when image was built with Buildkit
2024-07-18 21:46:49 +02:00
Sebastiaan van Stijn
c9d76ec00d Merge pull request #48176 from corhere/readme-commercial-support
README: replace obsolete Docker EE mention
2024-07-18 18:41:13 +02:00
Cory Snider
b37c983d31 README: replace obsolete Docker EE mention
Docker EE is no more. Point users looking for commercial support at the
currently-maintained commercial products based on the Moby project:
Docker Desktop and Mirantis Container Runtime.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-07-17 18:01:50 -04:00
Paweł Gronowski
3a62d4917b Merge pull request #48169 from kolyshkin/layer-regexp
rm regexp use
2024-07-17 11:52:23 +02:00
Kir Kolyshkin
508939821b daemon/containerd: rm use of regexp
Replace the regexp check with a function.

Keep the use of regexp.QuoteMeta.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-07-16 13:06:01 -07:00
Kir Kolyshkin
b66d4b567a image/v1: rm regexp use
Replace the regexp checking ID validity with a for loop.

The benefits are:
 - faster (up to 10x faster with less allocations);
 - no init overhead to compile the regexp.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-07-16 12:46:57 -07:00
Kir Kolyshkin
1c0dc8a94f layer: rm regexp use
Replace the regexp checking ID validity with a function. The benefits
are:

 - function is faster (up to 10x faster with less allocations);
 - no init overhead to compile the regexp;

Add a test case.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2024-07-16 12:30:17 -07:00
Sebastiaan van Stijn
aae044039c Merge pull request #48165 from thaJeztah/bump_google_deps
vendor: cloud.google.com/go/logging v1.9.0
2024-07-15 23:52:14 +02:00
Sebastiaan van Stijn
fb5acc4377 Merge pull request #48143 from thaJeztah/graphdriver_remove_capabilities
daemon/graphdriver: remove Capabilities, CapabilityDriver
2024-07-15 21:25:24 +02:00
Sebastiaan van Stijn
20a0102c5f Merge pull request #48139 from corhere/go119atomics
all: switch to Go 1.19 atomics
2024-07-15 18:03:41 +02:00
Sebastiaan van Stijn
0fa71a4cfc vendor: cloud.google.com/go/logging v1.9.0
removes dependency on appengine, among others

full diff: https://github.com/googleapis/google-cloud-go/compare/logging/v1.0.1...logging/v1.9.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-15 13:30:37 +02:00
Sebastiaan van Stijn
eafad2cb86 vendor: golang.org/x/oauth2 v0.21.0
removes dependency on appengine, among others

full diff: https://github.com/golang/oauth2/compare/v0.11.0...v0.21.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-15 13:12:58 +02:00
Sebastiaan van Stijn
9b782b8ff7 vendor: cloud.google.com/go/compute/metadata v0.3.0
full diff: https://github.com/googleapis/google-cloud-go/compare/compute/metadata/v0.2.3...compute/metadata/v0.3.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-15 12:57:46 +02:00
Akihiro Suda
2cfc2a57a8 Merge pull request #48159 from tonistiigi/vendor-buildkit-v0.15.0
vendor: update buildkit to v0.15.0
2024-07-12 14:47:34 +09:00
Tonis Tiigi
68bd630830 vendor: update buildkit to v0.15.0
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-07-11 16:41:16 -07:00
Akihiro Suda
c287997802 Merge pull request #48150 from tonistiigi/vendor-buildkit-v0.15.0-rc2
vendor: update buildkit to v0.15.0-rc2
2024-07-11 23:23:01 +09:00
Akihiro Suda
bdecfc587e Merge pull request #48154 from vvoland/docs-fix-typo
docs/api: Add missing `
2024-07-11 23:22:07 +09:00
Rob Murray
6c8bf8d816 Merge pull request #48156 from robmry/fix_api_version_in_TestSetInterfaceSysctl
Fix API version in TestSetInterfaceSysctl
2024-07-11 15:02:20 +01:00
Rob Murray
f649fd0c97 Fix API version in TestSetInterfaceSysctl
The test checks that it's possible to set a per-interface sysctl
using '--sysctl' - but, after API v1.46, it's not (and driver option
'com.docker.network.endpoint.sysctls' must be used instead).

Test added in commit fde80fe2
Per-interface sysctls added, with API changes, in commit 00718322

Signed-off-by: Rob Murray <rob.murray@docker.com>
2024-07-11 14:02:46 +01:00
Paweł Gronowski
7f04a603f6 docs/api: Add missing `
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2024-07-11 14:24:25 +02:00
Tonis Tiigi
89781912c1 vendor: update buildkit to v0.15.0-rc2
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-07-10 16:01:03 -07:00
Brian Goff
5ac29d0e1a Merge pull request #48149 from robmry/47952_remove_sctp_checksum_iptables_rule
By-default, don't create an iptables rule to checksum SCTP
2024-07-10 22:07:45 +00:00
Rob Murray
8be292a7bb By-default, don't create an iptables rule to checksum SCTP
For SCTP port mappings, an iptables mangle rule was create to fix
the checksum. The code comment says it was done to fix a problem
caused by the veth driver reporting NETIF_F_SCTP_CRC since kernel
4.9, when used with NICs that do not support NETIF_F_SCTP_CRC.

But the checksum rule fills in the checksum in the IP header,
not an SCTP checksum, so it doesn't seem related. And, quoting
from the github issue, "since kernel v4.19, the xt_CHECKSUM.c
explicitly states it should only be used for UDP and only in the
OUTPUT chain - while docker is using it for SCTP in the PREROUTING
chain".

Furthermore, the rule is reported to be causing errors for SCTP
between containers.

Because we don't entirely understand why the rule exists, it
is now only added if the daemon's env has
DOCKER_IPTABLES_SCTP_CHECKSUM=1. If no problems are reported, that
escape-hatch and the code to add the rule will be removed in a
future release.

Signed-off-by: Rob Murray <rob.murray@docker.com>
2024-07-10 18:53:54 +01:00
Tõnis Tiigi
767503d462 Merge pull request #48126 from tonistiigi/vendor-buildkit-v0.15.0-rc1
vendor: update buildkit to v0.15.0-rc1
2024-07-10 10:28:32 -07:00
Tonis Tiigi
1787c364e0 vendor: update buildkit to v0.15.0-rc1
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-07-08 20:35:36 -07:00
Sebastiaan van Stijn
688301caf4 daemon/graphdriver: remove Capabilities, CapabilityDriver
Capabilities were implemented in aa96c3176b,
as part of work on an external graphdriver-plugin. Given that none of
the builtin graphdrivers use this option, and support for graphdriver-
plugins has been removed in 555dac5e14,
we can remove this functionality.

This patch:

- removes the CapabilityDriver interface, which has no implementations
- removes the Capabilities type
- layer: remove layerStore.useTarSplit. This field was previously set
  through the driver's Capabilities, but always enabled for the builtin
  graphdrivers,

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-08 18:23:21 -05:00
Sebastiaan van Stijn
c4dcaa0d9a Merge pull request #48092 from thaJeztah/fsmagic_internal
daemon/graphdriver: split, internalize packages to separate snapshotters and graphdrivers
2024-07-08 16:09:59 -05:00
Cory Snider
185b1e3d69 Add lint rule to forbid old-style atomic ops
Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-07-08 11:09:56 -04:00
Cory Snider
5e64a7a003 volume/service: switch to Go 1.19 atomics
Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-07-08 11:09:56 -04:00
Cory Snider
1c102140f8 libnetwork: switch to Go 1.19 atomics
Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-07-08 11:09:56 -04:00
Cory Snider
46133bdb8e libnetwork/diagnostic: drop unsound use of atomics
It was unnecessary; access to the variable was synchronized through a
mutex in all cases but one, where synchonizing through the mutex would
work just fine without any chance of deadlocks.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-07-08 11:09:56 -04:00
Cory Snider
5044778433 distribution: switch to Go 1.19 atomics
Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-07-08 11:09:56 -04:00
Cory Snider
2ab618696a daemon/images: switch to Go 1.19 atomics
Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-07-05 19:05:22 -04:00
Cory Snider
30d740ada0 daemon/logger/ring: switch to Go 1.19 atomics
Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-07-05 19:05:18 -04:00
Cory Snider
7ef0c7acbe d/logger/loggerutils: switch to Go 1.19 atomics
Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-07-05 19:05:18 -04:00
Cory Snider
e612990994 daemon/logger/journald: switch to Go 1.19 atomics
Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-07-05 19:05:15 -04:00
Cory Snider
78893cdc05 daemon/logger/gcplogs: switch to Go 1.19 atomics
Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-07-05 19:05:15 -04:00
Cory Snider
508f51044d daemon/containerd: switch to Go 1.19 atomics
Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-07-05 19:05:15 -04:00
Cory Snider
71a299ff6a daemon: switch to Go 1.19 atomics
Signed-off-by: Cory Snider <csnider@mirantis.com>
2024-07-05 19:05:15 -04:00
Sebastiaan van Stijn
7496f11a46 Merge pull request #48134 from AkihiroSuda/rootless-check-dbus
rootless: add `Requires=dbus.socket`
2024-07-05 17:12:00 +02:00
Albin Kerouanton
1bf2e03636 Merge pull request #48135 from robmry/remove_ipv6_bridge_route_add
Remove IPv6 bridge RouteAdd() that always fails
2024-07-05 14:58:20 +02:00
Akihiro Suda
206445fa4f rootless: add Requires=dbus.socket
On a cgroup v2 host with systemd, dbus is needed to avoid the following error:
```
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed
: unable to start container process: unable to apply cgroup configuration: unable to start unit "docker-170a4183e351e69835b82cc3134b97c8cbb0e6d3a6
16d5a0fb0ea473075062ad.scope" (properties [{Name:Description Value:"libcontainer container 170a4183e351e69835b82cc3134b97c8cbb0e6d3a616d5a0fb0ea47
3075062ad"} {Name:Slice Value:"user.slice"} {Name:Delegate Value:true} {Name:PIDs Value:@au [2872]} {Name:MemoryAccounting Value:true} {Name:CPUAc
counting Value:true} {Name:IOAccounting Value:true} {Name:TasksAccounting Value:true} {Name:DefaultDependencies Value:false}]): Interactive authen
tication required.: unknown.
```

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2024-07-05 02:59:47 +09:00
Rob Murray
4776e6dd60 Remove IPv6 bridge RouteAdd() that always fails
The netlink.RouteAdd in setupBridgeIPv6 always failed, because
the bridge is always 'down' when it's called.

Signed-off-by: Rob Murray <rob.murray@docker.com>
2024-07-04 18:28:37 +01:00
Akihiro Suda
1205a90733 Merge pull request #47142 from thaJeztah/migrate_to_platforms_module
vendor: github.com/containerd/containerd v1.7.19, migrate to github.com/containerd/platforms module
2024-07-04 10:59:16 +09:00
Akihiro Suda
961ba670de Merge pull request #48127 from thaJeztah/bump_bk_deps
vendor: update dependencies in preparation of BuildKit v0.15
2024-07-04 10:57:14 +09:00
Sebastiaan van Stijn
066b7fa83c vendor: golang.org/x/net v0.25.0
full diff: https://github.com/golang/net/compare/v0.24.0...v0.25.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-04 02:33:04 +02:00
Sebastiaan van Stijn
7721408db7 vendor: golang.org/x/crypto v0.23.0
full diff: https://github.com/golang/crypto/compare/v0.22.0...v0.23.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-07-04 02:32:10 +02:00