Sebastiaan van Stijn
d7218ec6c1
daemon/pkg/plugin/v2: use namespace consts
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-28 12:18:46 +01:00
Brian Goff
d5fd0c50e8
Merge pull request #51925 from fuweid/fix-46212
...
daemon: ignore duplicate task exit events in daemon state
2026-01-27 11:28:34 -08:00
Paweł Gronowski
6566904016
Merge pull request #51946 from vvoland/renovate-config
...
renovate: ignore docker/github-builder-experimental
2026-01-27 16:42:44 +00:00
Paweł Gronowski
13422acb53
renovate: ignore docker/github-builder-experimental
...
This action has no tagged releases, so Renovate would open a PR for
every new commit. The action is still experimental and frequently
receives commits that would trigger unnecessary update PRs.
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2026-01-27 17:12:30 +01:00
Sebastiaan van Stijn
0b83aa1abb
Merge pull request #51943 from vvoland/init-fix-panic
...
daemon: Fix panic in shutdown after daemon init fails
2026-01-27 13:58:39 +01:00
Paweł Gronowski
1200f5e45c
daemon: Fix panic in shutdown after daemon init fails
...
When error during daemon initialization fails before the events manager
is created the daemon will panic instead of erroring out cleanly with
an actual error message.
```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x194fcec]
goroutine 1 [running, locked to thread]:
github.com/moby/moby/v2/daemon/events.(*Events).Close(...)
/go/src/github.com/docker/docker/daemon/events/events.go:157
github.com/moby/moby/v2/daemon.(*Daemon).Shutdown(0x40001bf908, {0x2d664f0, 0x44c87e0})
/go/src/github.com/docker/docker/daemon/daemon.go:1505 +0x3bc
github.com/moby/moby/v2/daemon.NewDaemon.func1()
/go/src/github.com/docker/docker/daemon/daemon.go:907 +0x44
github.com/moby/moby/v2/daemon.NewDaemon({0x2d66560, 0x4000051c20}, 0x40004a6108, 0x40006fe810, 0x4000318700)
/go/src/github.com/docker/docker/daemon/daemon.go:1371 +0x2130
github.com/moby/moby/v2/daemon/command.(*daemonCLI).start(0x4000051bd0, {0x2d664f0, 0x44c87e0})
/go/src/github.com/docker/docker/daemon/command/daemon.go:264 +0xb90
github.com/moby/moby/v2/daemon/command.runDaemon(...)
/go/src/github.com/docker/docker/daemon/command/docker_unix.go:13
github.com/moby/moby/v2/daemon/command.newDaemonCommand.func1(0x4000381808, {0x40006ac780?, 0x7?, 0x287f0b1?})
/go/src/github.com/docker/docker/daemon/command/docker.go:48 +0xb0
github.com/spf13/cobra.(*Command).execute(0x4000381808, {0x4000050060, 0x4, 0x4})
/go/src/github.com/docker/docker/vendor/github.com/spf13/cobra/command.go:1015 +0x7d4
github.com/spf13/cobra.(*Command).ExecuteC(0x4000381808)
/go/src/github.com/docker/docker/vendor/github.com/spf13/cobra/command.go:1148 +0x350
github.com/spf13/cobra.(*Command).Execute(...)
/go/src/github.com/docker/docker/vendor/github.com/spf13/cobra/command.go:1071
github.com/spf13/cobra.(*Command).ExecuteContext(...)
/go/src/github.com/docker/docker/vendor/github.com/spf13/cobra/command.go:1064
github.com/moby/moby/v2/daemon/command.daemonRunner.Run({0x2d35440?}, {0x2d664f0, 0x44c87e0})
/go/src/github.com/docker/docker/daemon/command/docker.go:97 +0x6c
main.main()
/go/src/github.com/docker/docker/cmd/dockerd/main.go:35 +0x108
```
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2026-01-27 11:55:03 +01:00
Paweł Gronowski
9c623849a9
Merge pull request #51940 from vvoland/vendor-client
...
vendor: github.com/moby/moby/client v0.2.2
docker-v29.2.0
v2.0.0-beta.6
2026-01-26 19:16:28 +00:00
Paweł Gronowski
b7b572a3e0
vendor: github.com/moby/moby/client v0.2.2
...
full diff: https://github.com/moby/moby/client/compare/2d8289cbf32e...v0.2.2
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2026-01-26 20:08:07 +01:00
Paweł Gronowski
871e906df9
Merge pull request #51938 from vvoland/vendor-api
...
vendor: github.com/moby/moby/api v1.53.0
client/v0.2.2
2026-01-26 19:04:24 +00:00
Paweł Gronowski
655828b656
vendor: github.com/moby/moby/api v1.53.0
...
full diff: https://github.com/moby/moby/api/compare/2d8289cbf32e...v1.53.0
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2026-01-26 19:55:48 +01:00
Paweł Gronowski
15b87a4ab4
Merge pull request #51936 from vvoland/drop-replace
...
Drop replace rules and cut API v1.53
api/v1.53.0
2026-01-26 18:47:48 +00:00
Paweł Gronowski
4fa326fa85
api: Cut v1.53
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2026-01-26 19:00:50 +01:00
Paweł Gronowski
f9ed31aa95
Drop replace rules
...
Prepare docker-v29.2.0
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2026-01-26 18:54:20 +01:00
Paweł Gronowski
2d8289cbf3
Merge pull request #51919 from htoyoda18/fix/decode
...
api/pkg/authconfig: reject multiple JSON documents in Decode
2026-01-26 17:47:20 +00:00
Sebastiaan van Stijn
ef6d8b026e
Merge pull request #51910 from thaJeztah/refactor_listener_defaults
...
loadDaemonCliConfig: explicitly set default host
2026-01-26 18:16:02 +01:00
Paweł Gronowski
45aee529d2
Merge pull request #51862 from thaJeztah/identity_version_gate
...
inspect: add API-version gate for image identity
2026-01-26 17:08:02 +00:00
Sebastiaan van Stijn
31ffe937e1
Merge pull request #51932 from thaJeztah/api_omitzero
...
api/types: use "omitzero" instead of "omitempty" for "netip" fields
2026-01-26 17:52:27 +01:00
Sebastiaan van Stijn
a007682383
Merge pull request #51931 from renovate-bot/renovate/actions-checkout-6.x
...
chore(deps): update actions/checkout action to v6
2026-01-26 17:51:53 +01:00
Sebastiaan van Stijn
59abc76746
daemon/pkg/opts: remove unused ParseHost
...
Merge some of the test-cases into TestParseDockerDaemonHost.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-26 16:51:48 +01:00
Sebastiaan van Stijn
8afb45b42f
loadDaemonCliConfig: explicitly set default host
...
Setting the default host was implicitly handled in `normalizeHosts`; if
no hosts were provided, an empty entry was added to the list of hosts,
then passed through to `opts.ParseHost`, which handled an empty value
to set the default location (depending on TLS being enabled or XDG paths
to be used (when running with RootlessKit).
This patch makes the logic less magical:
- If no hosts are configured by the user (through CLI-flags or daemon.json),
then we append the default location.
- The handling for TLS listeners is open-coded for now; we need to decide
if we want to preserve this behavior (magically using TCP instead of a
unix-socket or named pipe if TLS is enabled).
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-26 16:51:41 +01:00
hiroto.toyoda
f6c0f41e6d
api/pkg/authconfig: reject multiple JSON documents in Decode
...
Explicitly reject multiple JSON documents in authentication payloads
instead of silently ignoring them. This helps notify users when the
authentication payload is incorrectly formatted.
Signed-off-by: hiroto.toyoda <hiroto.toyoda@dena.com >
2026-01-27 00:30:51 +09:00
Sebastiaan van Stijn
fe81308c13
Merge pull request #51930 from thaJeztah/derenovate
...
ci: renovate: disable for api and client modules and use JSON5 format
2026-01-26 16:22:57 +01:00
Sebastiaan van Stijn
62c1a719b3
api/types: use "omitzero" instead of "omitempty" for "netip" fields
...
Pull request 50956 (88adc28731 ) updated
various types in the API module from a string to a `netip.Prefix` or
`netip.Addr`. A side-effect of this was that zero values would no longer
be omitted, and instead marshaled as an empty string;
package main
import (
"encoding/json"
"fmt"
"net/netip"
)
type Foo struct {
OmitEmpty netip.Prefix `json:",omitempty"`
OmitZero netip.Prefix `json:",omitzero"`
}
func main() {
out, _ := json.Marshal(Foo{})
fmt.Println(string(out))
}
The above produces `{"OmitEmpty":""}`, not omitting the empty address.
This patch;
- updates most types to use `omitzero` instead of `omitempty`.
- adds explicit `json` names to fields.
There's one type remaining that uses `omitzero`, but it's generated by
go-swagger, which currently doesn't support `omitzero`; the `PortSummary.IP`;
335f60509f/api/types/container/port_summary.go (L12-L20)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-26 15:57:18 +01:00
Mend Renovate
9d839a236c
chore(deps): update actions/checkout action to v6
...
Signed-off-by: Mend Renovate <bot@renovateapp.com >
2026-01-26 14:39:07 +00:00
Paweł Gronowski
335f60509f
Merge pull request #51929 from renovate-bot/renovate/actions-cache-5.x
...
chore(deps): update actions/cache action to v5
2026-01-26 14:13:03 +00:00
Sebastiaan van Stijn
a6dd46e1d2
Merge pull request #51928 from cuiweixie/typo
...
typo: called to caller
2026-01-26 15:04:43 +01:00
Sebastiaan van Stijn
12277d81d2
Merge pull request #51836 from thaJeztah/client_response_hook
...
client: implement WithResponseHook option
2026-01-26 14:09:00 +01:00
Sebastiaan van Stijn
7e8adf4d33
ci: renovate: disable for api and client modules
...
Do not update "api" and "client" module dependencies. We keep dependency
versions low for these to stick with "MVS" (Minimum Version Selection);
https://research.swtch.com/vgo-mvs
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-26 13:55:31 +01:00
Weixie Cui
f187929e87
retrigger github action
...
Signed-off-by: Weixie Cui <cuiweixie@gmail.com >
2026-01-26 20:49:31 +08:00
Sebastiaan van Stijn
86fd73d8bc
ci: renovate: fix regex escaping
...
The `/` is used as delimiter for the regex, so `/` literals
within the regex should ... probably be escaped.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-26 13:47:03 +01:00
Sebastiaan van Stijn
8ff66aa5dc
ci: renovate: add comment about Graylog2/go-gelf dependency
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-26 13:43:19 +01:00
Sebastiaan van Stijn
c36b44b21a
ci: rename renovate.json to renovate.json5
...
Renovate supports JSON5 (https://json5.org ), which allows comments
in JSON files.
Rename the file to be explicit about it being in JSON5 format.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-26 13:34:40 +01:00
Mend Renovate
c75070b9b4
chore(deps): update actions/cache action to v5
...
Signed-off-by: Mend Renovate <bot@renovateapp.com >
2026-01-26 12:16:14 +00:00
Weixie Cui
ab3be3c68b
typo: called to caller
...
Signed-off-by: Weixie Cui <cuiweixie@gmail.com >
2026-01-26 20:14:43 +08:00
Sebastiaan van Stijn
041d41ee55
Merge pull request #51906 from renovate-bot/renovate/code.cloudfoundry.org-clock-1.x
...
fix(deps): update module code.cloudfoundry.org/clock to v1.59.0
2026-01-26 13:12:54 +01:00
Sebastiaan van Stijn
049437c5b0
Merge pull request #51047 from thaJeztah/bump_cfssl
...
vendor: github.com/cloudflare/cfssl v1.6.5
2026-01-26 11:10:20 +01:00
Sebastiaan van Stijn
83a45d8d72
Merge pull request #51921 from thaJeztah/bump_compress
...
vendor: github.com/klauspost/compress v1.18.3
2026-01-26 11:09:14 +01:00
Sebastiaan van Stijn
ef8cf49a7d
Merge pull request #51922 from thaJeztah/gofumpt
...
gofumpt code
2026-01-26 10:09:28 +01:00
Mend Renovate
5589d5a1ea
fix(deps): update module code.cloudfoundry.org/clock to v1.59.0
...
Signed-off-by: Mend Renovate <bot@renovateapp.com >
2026-01-26 09:04:42 +00:00
Sebastiaan van Stijn
2cafa78953
vendor: github.com/cloudflare/cfssl v1.6.5
...
full diff: https://github.com/cloudflare/cfssl/compare/v1.6.4...v1.6.5
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-26 10:03:16 +01:00
Sebastiaan van Stijn
3b5a0c1e4c
vendor: github.com/zmap/zlint/v3 v3.5.0
...
full diff: https://github.com/zmap/zlint/compare/v3.1.0...v3.5.0
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-26 10:03:15 +01:00
Sebastiaan van Stijn
35aa470f73
vendor: github.com/weppos/publicsuffix-go v0.30.0
...
full diff: https://github.com/weppos/publicsuffix-go/compare/b1f36a2d6c0b...v0.30.0
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-26 10:02:43 +01:00
Akihiro Suda
6859f48dc3
Merge pull request #51920 from thaJeztah/bump_x_deps
...
vendor: update golang.org/x/xxx deps
2026-01-26 16:38:55 +09:00
Wei Fu
d5e23b680c
daemon: ignore duplicate task exit events in daemon state
...
Handle duplicate TaskExit events by checking container state and timestamps
while holding the container lock. Ignore late duplicates when restarting or
when a newer task is already running.
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2026-01-25 19:28:16 -05:00
Sebastiaan van Stijn
7b38ece108
integration: gofumpt
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-24 17:16:15 +01:00
Sebastiaan van Stijn
17de27ffc2
daemon: gofumpt
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-24 17:16:05 +01:00
Sebastiaan van Stijn
5bde1565a6
client: gofumpt
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-24 17:15:45 +01:00
Sebastiaan van Stijn
f3343bf846
api/types: gofumpt
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-24 17:14:59 +01:00
Sebastiaan van Stijn
3380c52740
vendor: github.com/klauspost/compress v1.18.3
...
no changes in vendored code
- fixes / downstream CVE-2025-61728
full diff: https://github.com/klauspost/compress/compare/v1.18.2...v1.18.3
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-24 16:03:32 +01:00
Sebastiaan van Stijn
0a3af47d89
vendor: golang.org/x/tools v0.41.0
...
full diff: https://cs.opensource.google/go/x/tools/+/refs/tags/v0.40.0...refs/tags/v0.41.0
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-01-24 15:58:29 +01:00