59422 Commits
Author SHA1 Message Date
Mend Renovate 3c35396b63 fix(deps): update module cloud.google.com/go/logging to v1.21.0
Signed-off-by: Mend Renovate <bot@renovateapp.com>
2026-10-26 10:24:15 +00:00
Sebastiaan van Stijn ef0cadceef Merge pull request #54019 from renovate-bot/renovate/github-codeql-action-4.x
chore(deps): update github/codeql-action action to v4.39.1
2026-10-26 11:19:43 +01:00
Sebastiaan van Stijn bf3eddd9e2 Merge pull request #54018 from renovate-bot/renovate/docker-actions
chore(deps): update docker/github-builder action to v1.18.1
2026-10-26 11:19:29 +01:00
Sebastiaan van Stijn 82585d276a Merge pull request #54015 from renovate-bot/renovate/docker-compose-bin-5.x
chore(deps): update docker/compose-bin docker tag to v5.6.1
2026-10-26 10:29:51 +01:00
Mend Renovate 48020a4b59 fix(deps): update github.com/moby/policy-helpers digest to 485a1be
Signed-off-by: Mend Renovate <bot@renovateapp.com>
2026-10-25 16:41:11 +00:00
Mend Renovate fd0717a2ed fix(deps): update module github.com/aws/smithy-go to v1.28.6
Signed-off-by: Mend Renovate <bot@renovateapp.com>
2026-10-24 21:05:05 +00:00
Mend Renovate cef83fa205 chore(deps): update github/codeql-action action to v4.39.1
Signed-off-by: Mend Renovate <bot@renovateapp.com>
2026-10-24 17:40:22 +00:00
Mend Renovate afb5a7765c chore(deps): update docker/github-builder action to v1.18.1
Signed-off-by: Mend Renovate <bot@renovateapp.com>
2026-10-24 17:40:17 +00:00
Mend Renovate e833469233 chore(deps): update docker/compose-bin docker tag to v5.6.1
Signed-off-by: Mend Renovate <bot@renovateapp.com>
2026-10-24 09:15:41 +00:00
Cory Snider a57bf8e135 d/libn/iptables: use firewalld when started later
The daemon uses firewalld only if firewalld is running when the daemon
starts. If firewalld is started later, the daemon does not react to it
starting or reloading. On firewalld configurations which delete other
applications' iptables rules when firewalld starts, the daemon's rules
stay deleted. The daemon's bridges are not added to the docker zone.

Keep the D-Bus connection when firewalld is not running at startup.
When firewalld acquires its D-Bus name, set up the docker zone and
forwarding policy before running the reload callbacks.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2026-10-23 18:46:18 -04:00
Cory Snider 3e896ecd6a d/libn/iptables: track firewalld by its D-Bus name
The daemon checks whether firewalld is running by calling
getDefaultZone at startup, and again whenever firewalld's D-Bus name
changes owner. The check infers firewalld's state from whether a
method call succeeds.

firewalld does not handle method calls until it has finished starting.
It is ready as soon as it owns its name. Ask the bus whether the name
has an owner at startup, after subscribing to NameOwnerChanged so that
no change of owner is missed, and take the state from each
NameOwnerChanged signal after that.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2026-10-23 18:45:43 -04:00
Cory Snider c4beb7e348 d/libn/iptables: restore rules on firewalld stop
When firewalld is stopped with CleanupOnExit=yes (the default), it
deletes the iptables rules, including the daemon's rules for
masquerading, published ports and network isolation. The daemon does
not restore them until firewalld is started again or the daemon is
restarted.

firewalld deletes the rules before it releases its D-Bus name. Run the
reload callbacks when firewalld releases its name, as well as when it
acquires it. By then, UsingFirewalld() reports false and the callbacks
restore the rules using iptables directly.

Signed-off-by: Cory Snider <csnider@mirantis.com>
2026-10-23 18:03:09 -04:00
Sebastiaan van Stijn b711d21792 Merge pull request #54003 from vvoland/update-ext
vendor: github.com/moby/extensions d2819d88bcbe
2026-10-22 11:41:14 +02:00
Paweł Gronowski 987cc3d314 vendor: github.com/moby/extensions d2819d88bcbe
full diff: https://github.com/moby/extensions/compare/e4c23d866037...d2819d88bcbe

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-10-21 20:57:10 +02:00
Paweł Gronowski ff225faca0 Merge pull request #53973 from renovate-bot/renovate/github.com-mdlayher-socket-0.x
fix(deps): update module github.com/mdlayher/socket to v0.8.0
2026-10-21 20:35:34 +02:00
Paweł Gronowski 4cd5ba9ed7 Merge pull request #54001 from jsternberg/api-route-path
daemon/server: fill in http request route pattern
2026-10-21 19:51:51 +02:00
Jonathan A. Sternberg 48d9ab2412 daemon/server: fill in http request route pattern
Fill in the `Pattern` field on an `http.Request`. This field is filled
out by the standard library's `http.ServeMux` but is not filled in by
`gorilla/mux`. It is used to identify the matching route pattern and is
primarily used for traces and metrics to reduce cardinality on paths
that have variables in the routes so they can be recorded to traces.

The primary result of this change is that HTTP request traces will now
have the name `{method} {route}` rather than only `{method}` so an
invocation of `docker ps` will show up as `GET /containers/json` instead
of just `GET`.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2026-10-21 11:14:04 -05:00
Paweł Gronowski b0e1577f1e Merge pull request #53992 from thaJeztah/build_tags
hack, Dockerfile: adjust some build-tags to slightly reduce binary sizes
2026-10-21 13:53:06 +02:00
Paweł Gronowski 46e1046e30 Merge pull request #53997 from renovate-bot/renovate/docker-buildx-bin-0.x
chore(deps): update docker/buildx-bin docker tag to v0.38.1
2026-10-21 12:52:06 +02:00
Paweł Gronowski 4f5448e0f4 Merge pull request #53996 from renovate-bot/renovate/docker-cli-29.x
chore(deps): update dependency docker/cli to v29.9.2
2026-10-21 12:51:56 +02:00
Paweł Gronowski b3377a9c52 Merge pull request #53995 from thaJeztah/bump_buildkit
vendor: github.com/moby/buildkit v0.34.1
2026-10-21 12:51:38 +02:00
Mend Renovate 4eef328903 chore(deps): update docker/buildx-bin docker tag to v0.38.1
Signed-off-by: Mend Renovate <bot@renovateapp.com>
2026-10-21 01:09:24 +00:00
Mend Renovate a6b191713a chore(deps): update dependency docker/cli to v29.9.2
Signed-off-by: Mend Renovate <bot@renovateapp.com>
2026-10-20 23:44:44 +00:00
Sebastiaan van Stijn c6a7c109b6 vendor: github.com/moby/buildkit v0.34.1
no code-changes in vendor; this was a binary-release only,
rebuilt with go1.26.10;

release notes: https://github.com/moby/buildkit/releases/tag/v0.34.1
full diff: https://github.com/moby/buildkit/compare/v0.34.0...v0.34.1

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-10-21 00:22:09 +02:00
Paweł Gronowski 95ede3da9a Merge pull request #53910 from vincentbernat/feature/pull-arm64-variants
daemon/internal: select the maximum arm64 variant supported by the CPU
2026-10-20 21:57:07 +02:00
Sebastiaan van Stijn 8950bde664 Dockerfile: disable unused CLI documentation in RootlessKit
Build RootlessKit with the `urfave_cli_no_docs` tag to exclude unused Markdown
and man-page generation code from `urfave/cli`.

This reduces the RootlessKit binary size by approximately 414 KiB.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-10-20 16:06:48 +02:00
Sebastiaan van Stijn c58f481b6f Dockerfile: disable unused gRPC tracing in containerd binaries
Build containerd binaries with the `grpcnotrace` tag to exclude the legacy
`golang.org/x/net/trace` dependency, allowing the linker to eliminate unused
tracing code.

- containerd: 36,700,322 → 36,307,106 bytes (−384 KiB)
- ctr: 21,561,506 → 21,168,290 bytes (−384 KiB)

See https://github.com/grpc/grpc-go/blob/v1.83.2/trace_notrace.go#L23-L25

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-10-20 16:06:47 +02:00
Sebastiaan van Stijn 36d803d754 hack: disable unused gRPC tracing in dockerd
Set the `grpcnotrace` tag to exclude the legacy `golang.org/x/net/trace`
dependency, allowing the linker to eliminate unused tracing code. This
reduces the binary size by approximately 232 KiB.

See https://github.com/grpc/grpc-go/blob/v1.83.2/trace_notrace.go#L23-L25

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-10-20 16:06:44 +02:00
Paweł Gronowski 9f9a3f0343 Merge pull request #53988 from vvoland/update-go
Update to go1.26.10
2026-10-20 15:06:07 +02:00
Paweł Gronowski 0b084f4c2d Update to go1.26.10
These releases include 1 security fix following the security policy:

- crypto/x509: mitigation for security concerns with a specific Certificate Authority

  We're blocking trust in a small set of intermediate certificates due to specific security concerns around their operation.

  Verify will now filter out chains which contain these intermediates, preventing them from being returned to the caller.

  We highly recommend immediately upgrading to this release.

  This is CVE-2026-111943 and Go issue https://go.dev/issue/82345.

release notes: https://go.dev/doc/devel/release#go1.26.10

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-10-20 12:16:13 +02:00
Mend Renovate 85f030dbec fix(deps): update module github.com/mdlayher/socket to v0.8.0
Signed-off-by: Mend Renovate <bot@renovateapp.com>
2026-10-20 10:12:46 +00:00
Paweł Gronowski 5e094dd9d3 Merge pull request #53114 from thaJeztah/bump_golangci_lint
Dockerfile: update golangci-lint to v2.14.0
2026-10-20 12:06:34 +02:00
Sebastiaan van Stijn 5d8d3c6ae3 Merge pull request #53969 from renovate-bot/renovate/github.com-godbus-dbus-v5-5.x
fix(deps): update module github.com/godbus/dbus/v5 to v5.2.4
2026-10-20 00:59:43 +02:00
Sebastiaan van Stijn 583dd7327b Dockerfile: update golangci-lint to v2.14.0
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-10-20 00:16:26 +02:00
Sebastiaan van Stijn 12aac80786 daemon/graphdriver/copy: remove stale "nolint" comment
It was added in 21b2c278cc, but became
redundant in cfd26afabe.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-10-19 23:30:44 +02:00
Sebastiaan van Stijn 1c53496d5b fix sprintfQuotedString (gocritic)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-10-19 23:30:44 +02:00
Sebastiaan van Stijn 225101cddd golangci-lint: ignore G702, G703 (gosec) in tests
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-10-19 23:30:43 +02:00
Sebastiaan van Stijn 87bcd0486d Merge pull request #53980 from thaJeztah/api_remove_rapid
api/types/plugin: replace rapid with standard Go fuzzing
2026-10-19 22:57:39 +02:00
Sebastiaan van Stijn d3c51c66da api/types/plugin: replace rapid with standard Go fuzzing
Replace the rapid-based property test for plugin capability IDs
with a table-driven test and Go's built-in fuzzing support.

Preserve the comparison against the historical JSON parser to
catch compatibility regressions, and add explicit test cases for
the supported serialization formats and invalid inputs.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2026-10-19 22:33:32 +02:00
Sebastiaan van Stijn a5ffd75e61 Merge pull request #53982 from crazy-max/github-builder-1.18.0
ci: update docker/github-builder to 1.18.0
2026-10-19 22:22:31 +02:00
Sebastiaan van Stijn 32067ae77e Merge pull request #53977 from renovate-bot/renovate/github-codeql-action-4.x
chore(deps): update github/codeql-action action to v4.39.0
2026-10-19 22:08:35 +02:00
Sebastiaan van Stijn bdc8906a19 Merge pull request #53976 from renovate-bot/renovate/github.com-moby-swarmkit-v2-digest
fix(deps): update github.com/moby/swarmkit/v2 digest to 5d8dbdc
2026-10-19 22:07:47 +02:00
Sebastiaan van Stijn 2593112df6 Merge pull request #53745 from rzlink/fix/windows-sparse-export-deps
vendor: update hcsshim to fix Windows sparse-file exports
2026-10-19 22:06:28 +02:00
Dawei Wei c7397ad381 vendor: github.com/Microsoft/hcsshim v0.15.0
Signed-off-by: Dawei Wei <wei.dawei.cn@gmail.com>
2026-10-19 10:54:01 -07:00
Akihiro Suda 4eee42c024 Merge pull request #53981 from vvoland/rootless-cp-ro
daemon: Fix docker cp with read-only socket mounts in rootless mode
2026-10-20 01:40:49 +09:00
CrazyMax 42992cec6e ci: update docker/github-builder to 1.18.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-10-19 14:51:05 +02:00
Paweł Gronowski fbd19453fd daemon: Fix docker cp with read-only socket mounts in rootless mode
openContainerFS remounted such a mount read-only with only
ro,remount,bind, but the rootless daemon runs in a user namespace, where
the kernel locks the nosuid, nodev, noexec and atime flags of mounts
inherited from the parent namespace, and rejects a remount which drops
them.

Keep those flags on the remount when running in a user namespace, using
mountopts.UnprivilegedMountFlags as the container spec already does for
bind mounts.

This is typical for X11 sockets on hosts where /tmp is a tmpfs, such as:
/tmp/.X11-unix/X0.

Before this patch, any `docker cp` call on a container with such path
bind-mounted errored out with:

```
    Error response from daemon: remount-ro .../tmp/.X11-unix/X0,
    flags: 0x1021: operation not permitted
```

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2026-10-19 12:33:05 +02:00
Mend Renovate a52bdbe65c fix(deps): update module github.com/godbus/dbus/v5 to v5.2.4
Signed-off-by: Mend Renovate <bot@renovateapp.com>
2026-10-16 17:40:11 +00:00
Mend Renovate 0a3fb432ab chore(deps): update github/codeql-action action to v4.39.0
Signed-off-by: Mend Renovate <bot@renovateapp.com>
2026-10-16 15:34:17 +00:00
Mend Renovate c41e802932 fix(deps): update github.com/moby/swarmkit/v2 digest to 5d8dbdc
Signed-off-by: Mend Renovate <bot@renovateapp.com>
2026-10-16 15:34:11 +00:00