Commit Graph

53666 Commits

Author SHA1 Message Date
Sebastiaan van Stijn
df3aea43aa remove references to "vendor.mod"
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-08 00:24:37 +02:00
Austin Vazquez
33badcff70 Merge pull request #50126 from thaJeztah/bump_go_connections
vendor: github.com/docker/go-connections v0.6.0
2025-08-07 15:18:41 -07:00
Sebastiaan van Stijn
a328be30eb Merge pull request #50645 from thaJeztah/bump_c8d
Dockerfile: update containerd binary to v1.7.28
2025-08-07 23:49:00 +02:00
Sebastiaan van Stijn
677c2a19d9 vendor: github.com/docker/go-connections v0.6.0
- deprecate sockets.GetProxyEnv, sockets.DialerFromEnvironment
- add support for unix sockets on Windows
- remove legacy CBC cipher suites from client config
- align client and server defaults to be the same.
- remove support for encrypted TLS private keys.
- nat: optimize ParsePortSpec

full diff: https://github.com/docker/go-connections/compare/v0.5.0...v0.6.0

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-07 22:07:57 +02:00
Sebastiaan van Stijn
8be1b2372a Dockerfile: update containerd binary to v1.7.28
- release notes: https://github.com/containerd/containerd/releases/tag/v1.7.28
- full diff: https://github.com/containerd/containerd/v1.7.27...v1.7.28

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-07 22:03:38 +02:00
Sebastiaan van Stijn
0ea918ad0a Merge pull request #50662 from vvoland/fix-frozen
Fix download-frozen-image-v2
2025-08-07 21:58:57 +02:00
Paweł Gronowski
b9b52d59b8 download-frozen-image-v2: Use curl -L
Passing the Auth to the redirected location was fixed in curl 7.58:
https://curl.se/changes.html#7_58_0 so we no longer need the extra
handling and can just use `-L` to let curl handle redirects.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-08-07 20:52:30 +02:00
Paweł Gronowski
359a881cea download-frozen-image-v2: handle 307 responses without decimal
Correctly parse HTTP response that doesn't contain an HTTP version with a decimal place:

```
< HTTP/2 307
```

The previous version would only match strings like `HTTP/2.0 307`.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
2025-08-07 20:51:42 +02:00
Rob Murray
e628fa0409 Merge pull request #50649 from olljanat/win-keep-ipam-config
windows: do not forgot IPAM configuration when re-creating networks
2025-08-07 12:41:50 +01:00
Olli Janatuinen
dcaf8893a0 windows: do not forgot IPAM configuration when re-creating networks
Signed-off-by: Olli Janatuinen <olli.janatuinen@gmail.com>
2025-08-06 16:49:20 +00:00
Sebastiaan van Stijn
28df781514 Merge pull request #50648 from thaJeztah/add_replace
add back replace and vendor, tidy
2025-08-06 18:02:15 +02:00
Sebastiaan van Stijn
0b2644b61f Merge pull request #50644 from thaJeztah/bump_runc
Dockerfile: update runc binary to v1.3.0
2025-08-06 17:52:32 +02:00
Sebastiaan van Stijn
0ad765c67d add back replace and vendor, tidy
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-06 16:30:57 +02:00
Sebastiaan van Stijn
3a4851d1f2 Merge pull request #50643 from thaJeztah/api_docs_sync
api/docs: sync v1.52 swagger with current version
2025-08-06 16:21:35 +02:00
Sebastiaan van Stijn
f5f984eec6 Dockerfile: update runc binary to v1.3.0
- release notes: https://github.com/opencontainers/runc/releases/tag/v1.3.0
- full diff: https://github.com/opencontainers/runc/compare/v1.2.6..v1.3.0

-----

This is the first release of the 1.3.z release branch of runc. It
contains a few minor fixes for issues found in 1.3.0-rc.2.

This is the first release of runc that will follow our new release and
support policy (see RELEASES.md for more details). This means that, as
of this release:

* As of this release, the runc 1.2.z release branch will now only
  receive security and "significant" bugfixes.
* Users are encouraged to plan migrating to runc 1.3.0 as soon as
  possible.
* Due to its particular situation, runc 1.1.z is officially no longer
  supported and will no longer receive any updates (not even for
  critical security issues). Users are urged (in the strongest possible
  terms) to upgrade to a supported version of runc.
* Barring any future changes to our release policy, users should expect
  a runc 1.4.0 release in late October 2025.

Fixed

* Removed pre-emptive "full access to cgroups" warning when calling
  `runc pause` or `runc unpause` as an unprivileged user without
  `--systemd-cgroups`. Now the warning is only emitted if an actual permission
  error was encountered.
* Several fixes to our CI, mainly related to AlmaLinux and CRIU.

Changed

* In runc 1.2, we changed our mount behaviour to correctly handle clearing
  flags. However, the error messages we returned did not provide as much
  information to users about what clearing flags were conflicting with locked
  mount flags. We now provide more diagnostic information if there is an error
  when in the fallback path to handle locked mount flags.
* Upgrade our CI to use golangci-lint v2.0.
* `runc version` information is now filled in using `//go:embed` rather than
  being set through `Makefile`. This allows `go install` or other non-`make`
  builds to contain the correct version information. Note that
  `make EXTRA_VERSION=...` still works.
* Remove `exclude` directives from our `go.mod` for broken `cilium/ebpf`
  versions. `v0.17.3` resolved the issue we had, and `exclude` directives are
  incompatible with `go install`.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-06 13:51:00 +02:00
Sebastiaan van Stijn
fadceb9253 Merge pull request #50338 from jirimoravcik/docs/improve-build-outputs-description
docs: api: improve the docs of the `outputs` parameter
2025-08-06 13:12:23 +02:00
Sebastiaan van Stijn
18940b6c9b Merge pull request #50640 from thaJeztah/update_tests
update some fixtures in tests
2025-08-06 13:01:12 +02:00
Sebastiaan van Stijn
234349d173 api/docs: sync v1.52 swagger with current version
This includes the changes from c13266d2c0
in the versioned swagger, as those changes were made after the
v1.52 versioned document was created.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-06 12:22:57 +02:00
Jiří Moravčík
833dc69ad9 docs: improve the description of the outputs parameter for /build endpoint
Signed-off-by: Jiří Moravčík <jiri.moravcik@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-06 12:18:00 +02:00
Akihiro Suda
2c1d9046b2 Merge pull request #50639 from thaJeztah/update_godocs
update various "doc" links in code
2025-08-06 13:32:43 +09:00
Akihiro Suda
491fe1fbcf Merge pull request #50642 from thaJeztah/mod_tidy
go.mod: tidy
2025-08-06 12:58:43 +09:00
Sebastiaan van Stijn
c145229828 update some fixtures in tests
updated TestModuleVersion fixture (looks like the test doesn't really care :D)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-05 20:54:36 +02:00
Sebastiaan van Stijn
90c3d29bfb go.mod: tidy
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-05 20:51:28 +02:00
Sebastiaan van Stijn
78ccee32b3 update various "doc" links in code
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-05 20:49:57 +02:00
Austin Vazquez
2ab75a2461 Merge pull request #50641 from austinvazquez/prepare-moby-client-v0.1.0-alpha.0
Bump api version in client and main module to v1.52.0-alpha.1
client/v0.1.0-alpha.0
2025-08-05 11:34:02 -07:00
Austin Vazquez
d82f50557e Bump api version in client and main module to v1.52.0-alpha.1
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com>
2025-08-05 13:19:45 -05:00
Sebastiaan van Stijn
37d0204d7f Merge pull request #50594 from thaJeztah/cleanup_v1_handling
builder-next: puller.Snapshot: cleanup handling of v1 images
api/v1.52.0-alpha.1
2025-08-05 19:51:24 +02:00
Paweł Gronowski
8bd1ad8665 Merge pull request #50636 from thaJeztah/update_golangci_config
update golangci-lint settings
2025-08-05 17:40:34 +00:00
Sebastiaan van Stijn
141a97bdf9 Merge pull request #50555 from chunzhennn/49231-fix-memcg-swap-config-check
contrib/check-config: fix MEMCG_SWAP checking
2025-08-05 19:36:26 +02:00
Sebastiaan van Stijn
e7feeb10b9 Merge pull request #50602 from thaJeztah/cleanup_enabledisableservice
daemon/libnetwork: Sandbox.EnableService/DisableService slight cleanup
2025-08-05 19:35:10 +02:00
Paweł Gronowski
b99405e47b Merge pull request #48114 from thaJeztah/api_types_move_plugin_types
api/types: move plugin types to api/types/plugin
2025-08-05 17:33:48 +00:00
Sebastiaan van Stijn
4ed5ca3202 Merge pull request #50637 from dmcgowan/prepare-client-0.1.0-alpha.0
Prepare release notes for `client/v0.1.0-alpha.0`
2025-08-05 19:33:12 +02:00
Derek McGowan
a0a7d9a3d7 Add release notes for client/v0.1.0-alpha.0
Signed-off-by: Derek McGowan <derek@mcg.dev>
2025-08-05 09:16:34 -07:00
Derek McGowan
32ec26be6c Update client and main module api version to latest alpha tag
Signed-off-by: Derek McGowan <derek@mcg.dev>
2025-08-05 09:16:13 -07:00
Sebastiaan van Stijn
e30b8e3393 update golangci-lint settings
The github.com/docker/docker/reference package was moved to
github.com/moby/moby/v2/daemon/internal/refstore, so this
check no longer did anything (and no aliasing needed).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-05 17:32:31 +02:00
Austin Vazquez
44bca1adf3 Merge pull request #50625 from dmcgowan/prepare-api-v1.52.0
Prepare release notes for v1.52.0-alpha.0
api/v1.52.0-alpha.0
2025-08-05 07:45:38 -07:00
Sebastiaan van Stijn
57256a9b62 fix error-capitalization
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-05 15:42:59 +02:00
Sebastiaan van Stijn
c13266d2c0 api/types: move plugin types to api/types/plugin
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-05 15:42:57 +02:00
Sebastiaan van Stijn
926ff237a9 Merge pull request #50632 from thaJeztah/move_error_response
api/types: move ErrorResponse to common/ErrorResponse
2025-08-05 15:41:49 +02:00
Sebastiaan van Stijn
c17d43ae67 api/types: move ErrorResponse to common/ErrorResponse
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-05 14:45:10 +02:00
Sebastiaan van Stijn
c77b27f2fc Merge pull request #50630 from thaJeztah/client_stdlib_errs
client: use stdlib errors
2025-08-05 14:43:06 +02:00
Sebastiaan van Stijn
485b11a6f7 Merge pull request #50599 from thaJeztah/cleanup_registry
daemon/pkg/registry: some cleanups to start separating "search"
2025-08-05 13:51:17 +02:00
Sebastiaan van Stijn
7fa01a73cd Merge pull request #50601 from thaJeztah/cleanup_buildSandboxOptions
daemon: make buildSandboxOptions, buildSandboxPlatformOptions more atomic
2025-08-05 13:49:10 +02:00
Sebastiaan van Stijn
15f78b752c daemon: make buildSandboxOptions, buildSandboxPlatformOptions more atomic
The buildSandboxPlatformOptions function was given a pointer to the
sboxOptions and modified it in-place.

Similarly, a pointer to the container was passed and `container.HostsPath`
and `container.ResolvConfPath` mutated. In cases where either of those
failed, we would return an error, but the container (and sboxOptions)
would already be modified.

This patch;

- updates the signature of buildSandboxPlatformOptions to return a fresh
  slice of sandbox options, which can be appended to the sboxOptions by
  the caller.
- uses intermediate variables for `hostsPath` and `resolvConfPath`, and
  only mutates the container if both were obtained successfully.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-05 11:59:46 +02:00
Sebastiaan van Stijn
77c2e3279d daemon/libnetwork: Sandbox.EnableService/DisableService slight cleanup
- remove/rename named error-return
- remove redundant defer
- use "continue" to reduce nesting
- use structured logs

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-05 11:56:00 +02:00
Paweł Gronowski
c6ca504388 Merge pull request #50626 from thaJeztah/add_v1.52_docs
api/docs: add v1.52 swagger
2025-08-05 09:22:06 +00:00
Sebastiaan van Stijn
7b8f841d1c Merge pull request #50628 from thaJeztah/bump_deps
go.mod: update containerd/v2 v2.1.4, dario.cat/mergo v1.0.2, docker/go-events, fernet/fernet-go
2025-08-05 09:32:14 +02:00
Sebastiaan van Stijn
bfce6556c4 client: use stdlib errors
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-05 09:11:21 +02:00
Sebastiaan van Stijn
e06826601c Merge pull request #50629 from thaJeztah/client_tidy
client: tidy go.mod
2025-08-05 08:22:48 +02:00
Sebastiaan van Stijn
3fe93532e4 client: tidy go.mod
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2025-08-04 20:40:57 +02:00