Commit Graph

54909 Commits

Author SHA1 Message Date
Sebastiaan van Stijn
e2bdc51508 client: CheckpointCreate: add output struct
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-10 11:42:23 +01:00
Sebastiaan van Stijn
da25838fc3 client: CheckpointListResult: rename Checkpoints to Items
Align with other ListResult structs

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-10 11:23:34 +01:00
Sebastiaan van Stijn
fda54735c9 client: move CheckpointAPIClient together with other interfaces
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-10 11:19:12 +01:00
Sebastiaan van Stijn
4dc87c55c7 Merge pull request #51436 from thaJeztah/backend_buildcache
daemon: refactor disk-usage endpoint
2025-11-07 20:15:35 +01:00
Sebastiaan van Stijn
71bcd22d6d daemon/server/router/system: simplify constructing response
Now that we separated the legacy response from non-legacy responses,
we can consume the data produced by the backend as-is; the backend
takes care of omitting "verbose" data (leaving the `Items` slices
empty), and with an early return for the legacy responses, we won't
end up with returning _both_ responses on API < v1.52, but (TBD) still
return both responses for API v1.52.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-07 19:57:40 +01:00
Sebastiaan van Stijn
f5e319c950 daemon/server/router/system: use early return for disk-usage
Use early return for legacy response. When using API < v1.52, we'd
never return the new fields, so we can return early, and produce the
legacy-fields only.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-07 19:57:39 +01:00
Sebastiaan van Stijn
20870f13c2 daemon: remove intermediate vars when collecting diskUsage
Set values directly on the DiskUsage objects instead of using some
intermediate vars, some of which were named slightly confusing due
to them being used both for "totalSize" and "reclaimableSize".

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-07 19:57:36 +01:00
Sebastiaan van Stijn
0dcb1fe344 daemon: align build.DiskUsage() with other disk-usages
Move calculation of the data to the builder backend, to align with
the other type of objects. This also allows us to skip the verbose
data if it's not used.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-07 19:57:30 +01:00
Sebastiaan van Stijn
f1a3387633 daemon/server/backend: align DiskUsage types with api
Make the "per-object" types aliases for the API type, and remove
the BuildCacheDiskUsage type, as it's not currently used.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-07 19:57:13 +01:00
Sebastiaan van Stijn
04de584531 daemon/server/router/system: use shorter names and comments
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-07 19:56:55 +01:00
Sebastiaan van Stijn
32319028e5 daemon/server/router/system: slightly rewrite logic for legacy
Rewrite the logic to have a better separation between producing legacy
fields, and verbose. We need to preserve / include all items in the
response _either_ if a API >= v1.52 client requested "verbose" _or_
if we're about to produce legacy fields.

Also switch to using the `httputils.BoolValue` utility; while we lose
the error for invalid values (which we probably should have as a utility
in `httputils`), it aligns with values accepted for other boolean values.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-07 19:56:37 +01:00
Rob Murray
2ff1f1a68b Merge pull request #51438 from thaJeztah/add_replace
go.mod: add back replace
2025-11-07 17:54:41 +00:00
Sebastiaan van Stijn
bd5e6bab1d go.mod: add back replace
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-07 17:22:05 +01:00
Paweł Gronowski
cb8228b147 Merge pull request #51433 from vvoland/vendor-client
vendor: github.com/moby/moby/client v0.1.0-rc.1
docker-v29.0.0-rc.3 v2.0.0-beta.2
2025-11-07 01:32:37 +01:00
Paweł Gronowski
34b6fb783d vendor: github.com/moby/moby/client v0.1.0-rc.1
full diff: https://github.com/moby/moby/client/compare/v0.1.0-beta.3...v0.1.0-rc.1

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-11-07 01:23:30 +01:00
Paweł Gronowski
1b8ff20dee Merge pull request #51432 from vvoland/vendor-api
vendor: github.com/moby/moby/api v1.52.0-rc.1
client/v0.1.0-rc.1
2025-11-07 01:19:50 +01:00
Paweł Gronowski
f66f1b451c vendor: github.com/moby/moby/api v1.52.0-rc.1
full diff: https://github.com/moby/moby/api/compare/v1.52.0-beta.4...v1.52.0-rc.1

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-11-07 01:11:18 +01:00
Paweł Gronowski
35e8c8b929 Merge pull request #51430 from vvoland/drop-replace
Drop replace rules for v29.0.0-rc.3
api/v1.52.0-rc.1
2025-11-07 01:05:20 +01:00
Paweł Gronowski
e8745c2157 Drop replace rules
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-11-07 00:56:57 +01:00
Sebastiaan van Stijn
52e19b6e6d Merge pull request #51402 from thaJeztah/cleanup_interfaces
client: cleanup and re-group interfaces
2025-11-07 00:53:54 +01:00
Sebastiaan van Stijn
243e19e1f2 Merge pull request #51421 from thaJeztah/dockerd_cleanups
cmd/dockerd: minor cleanups / changes
2025-11-07 00:53:35 +01:00
Paweł Gronowski
16b865e7ce Merge pull request #51431 from thaJeztah/client_rm_deprecated
client: remove uses of deprecated NewClientWithOpts
2025-11-07 00:52:56 +01:00
Paweł Gronowski
7fd468cebf Merge pull request #51428 from austinvazquez/rename-api-fields
Rename disk usage API fields
2025-11-07 00:52:46 +01:00
Sebastiaan van Stijn
8db3118ac9 client: remove uses of deprecated NewClientWithOpts
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-07 00:07:11 +01:00
Sebastiaan van Stijn
1745075b24 client: DiskUsage: rename fields to match API
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-06 17:06:53 -06:00
Paweł Gronowski
56463970c0 Merge pull request #51429 from thaJeztah/unexport_streamformatter
client: pkg/streamformatter: un-export unused utilities
2025-11-07 00:05:33 +01:00
Sebastiaan van Stijn
dcfcfd33e9 client: cleanup and re-group interfaces
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-06 23:48:47 +01:00
Austin Vazquez
931c347b36 api/types: rename disk usage fields
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
2025-11-06 16:21:32 -06:00
Paweł Gronowski
217fd78905 Merge pull request #51412 from austinvazquez/use-regular-slice-for-disk-usage
api/types: use regular slices for disk usage types
2025-11-06 23:13:47 +01:00
Sebastiaan van Stijn
745c483e42 client: pkg/streamformatter: un-export unused utilities
Un-export or remove utilities that have no (external) users;

- AuxFormatter (not used)
- FormatError (only used internally)
- FormatStatus (only used internally)
- NewJSONProgressOutput (used by CLI)
- NewProgressOutput (used by compose, cli for classic builder)
- NewStderrWriter (not used)
- NewStdoutWriter (not used)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-06 23:12:11 +01:00
Austin Vazquez
4c6d0ebc40 Fix disk usage result from legacy response logic
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
2025-11-06 15:12:30 -06:00
Sebastiaan van Stijn
f7fd9c315a Merge pull request #51381 from thaJeztah/simplify_pkg_security
client/pkg/security: simplify
2025-11-06 22:06:08 +01:00
Paweł Gronowski
0b56248e63 Merge pull request #51427 from vvoland/update-selinux
vendor: github.com/opencontainers/selinux v1.13.0
2025-11-06 21:45:36 +01:00
Paweł Gronowski
ffc8580397 Merge pull request #51390 from vvoland/c8d-work
daemon: Refactor image store choice logic
2025-11-06 20:29:27 +01:00
Paweł Gronowski
bc3c37098c vendor: github.com/opencontainers/selinux v1.13.0
full diff: https://github.com/opencontainers/selinux/compare/v1.12.0...v1.13.0

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-11-06 20:26:55 +01:00
Paweł Gronowski
10f6eeb56d daemon: Refactor image store choice logic
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-11-06 20:09:27 +01:00
Paweł Gronowski
0ecfc58f6a Merge pull request #51418 from vvoland/update-go
update to go1.25.4
2025-11-06 17:50:30 +01:00
Sebastiaan van Stijn
4a3e139e3c daemon/command: NewDaemonRunner: set both stdout and stderr
Make sure Cobra is configured with the streams we use, and use
Cobra's utilities to print the validation messsage.

While updating, also add a short comment outlining why we're using
STDERR, not STDOUT for this message.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-06 15:53:11 +01:00
Sebastiaan van Stijn
0678de9c87 cmd/dockerd: main(): remove "onError" func
Remove the redundant abstraction; just inline it.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-06 15:52:35 +01:00
Sebastiaan van Stijn
9e350b6832 Merge pull request #51339 from thaJeztah/bump_google_logs
vendor: cloud.google.com/go/compute/metadata v0.7.0, cloud.google.com/go/logging v1.12.0
2025-11-06 15:47:38 +01:00
Albin Kerouanton
a045cdd3cf Merge pull request #51419 from djs55/delete-readme
delete trivially redundant/incorrect cmd/dockerd/README.md
2025-11-06 15:34:02 +01:00
Paweł Gronowski
922cd97491 update to go1.25.4
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-11-06 14:15:23 +01:00
David Scott
d6ceff48bf delete redundant/incorrect cmd/dockerd/README.md
The README was useful when it was pointing to docker.go and when
docker.go contained the arg parsing and env setting code, but the
structure was simplified by @dmcgowan in 33139da522

It seems pointless to update it to say:

> main.go contains Docker daemon's main function.

and this part is out of date

> This file provides first line CLI argument parsing and environment variable setting.

It seems redundant with the new simpler structure, so delete it.

Signed-off-by: David Scott <dave@recoil.org>
2025-11-06 13:09:08 +00:00
Paweł Gronowski
12e5282c16 Merge pull request #51417 from vvoland/lima-revert-v2
gha/vm: Force Lima v1.2.2
2025-11-06 14:07:08 +01:00
Paweł Gronowski
d0fbae6e44 gha/vm: Force Lima v1.2.2
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-11-06 13:24:37 +01:00
Sebastiaan van Stijn
062906a354 Merge pull request #51414 from thaJeztah/remove_dummy_command
daemon/command: remove `__dummy_command` workaround for completion
2025-11-06 12:33:09 +01:00
Sebastiaan van Stijn
d661f17c3c Merge pull request #51306 from thaJeztah/client_readers
client: use cancelReadCloser for readers
2025-11-06 12:32:28 +01:00
Sebastiaan van Stijn
0029924181 api/types/system: change legacyDiskUsage to a non-pointer slice
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-06 12:31:05 +01:00
Sebastiaan van Stijn
ff019cd853 internal/sliceutil: add Deref utility
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-11-06 12:15:25 +01:00
Akihiro Suda
0035b5eed6 Merge pull request #51409 from austinvazquez/test-containerd-2.1.5
Dockerfile: test containerd v2.1.5 (linux), v2.0.7 (windows)
2025-11-06 18:01:10 +09:00