Sebastiaan van Stijn
b1b8a602f6
Merge pull request #7269 from thaJeztah/slice_and_dice_step2
...
update naturalsort sorting with slice
2026-09-03 15:28:39 +02:00
Sebastiaan van Stijn
36e01adcfa
cmd/docker-trust: update naturalsort sorting with slices
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-03 15:02:50 +02:00
Sebastiaan van Stijn
e54eb133cb
update naturalsort sorting with slices
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-03 15:02:45 +02:00
Paweł Gronowski
f01f978aca
Merge pull request #7267 from thaJeztah/fix_aliases
...
cmd/docker: fix stringSliceReplaceAt with overlapping matches
2026-09-03 15:00:28 +02:00
Paweł Gronowski
d078f15f2b
Merge pull request #7254 from locker95/fix/login-client-side-basic-401
...
registry: treat basic-auth 401 as unauthorized
2026-09-03 14:30:05 +02:00
Paweł Gronowski
13e32611b5
Merge pull request #7271 from thaJeztah/bump_sortorder
...
vendor: github.com/fvbommel/sortorder v1.2.0
2026-09-03 14:22:45 +02:00
Sebastiaan van Stijn
7c883814b8
Merge pull request #7280 from vvoland/work-panic
...
cli/command: Avoid panics after client initialization errors
2026-09-03 13:03:29 +02:00
Paweł Gronowski
b07de47694
cli/command: Avoid panics after client initialization errors
...
When client.New rejects an invalid Docker host or other client option,
it returns a nil concrete client with an error.
Returning that pointer directly as client.APIClient stores a typed-nil
interface, so lazy version checks dereference it.
Return an error instead.
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2026-09-03 10:59:11 +02:00
Sebastiaan van Stijn
9878ff214b
Merge pull request #7274 from vvoland/update-go
...
Update to go1.26.8
2026-09-02 16:43:01 +02:00
Paweł Gronowski
c24195d63f
Update to go1.26.8
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2026-09-02 14:48:59 +02:00
Sebastiaan van Stijn
d7ad1d7268
Merge pull request #7272 from docker/dependabot/github_actions/codeql-actions-9de84475bd
...
build(deps): bump the codeql-actions group with 3 updates
2026-09-02 12:48:04 +02:00
Paweł Gronowski
e6ee8bee34
Merge pull request #7268 from thaJeztah/slice_and_dice
...
modernize code with slices and maps packages
2026-09-02 12:11:22 +02:00
dependabot[bot]
c096bd1261
build(deps): bump the codeql-actions group with 3 updates
...
Bumps the codeql-actions group with 3 updates: [github/codeql-action/init](https://github.com/github/codeql-action ), [github/codeql-action/autobuild](https://github.com/github/codeql-action ) and [github/codeql-action/analyze](https://github.com/github/codeql-action ).
Updates `github/codeql-action/init` from 4.37.8 to 4.37.9
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28...cdf488f595d80d6e07e03d4674febd5ab45fa938 )
Updates `github/codeql-action/autobuild` from 4.37.8 to 4.37.9
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28...cdf488f595d80d6e07e03d4674febd5ab45fa938 )
Updates `github/codeql-action/analyze` from 4.37.8 to 4.37.9
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/db488ddef3bf6cb639b32c2e9a7c0a7ea8271d28...cdf488f595d80d6e07e03d4674febd5ab45fa938 )
---
updated-dependencies:
- dependency-name: github/codeql-action/init
dependency-version: 4.37.9
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: codeql-actions
- dependency-name: github/codeql-action/autobuild
dependency-version: 4.37.9
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: codeql-actions
- dependency-name: github/codeql-action/analyze
dependency-version: 4.37.9
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: codeql-actions
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-09-02 08:46:18 +00:00
Sebastiaan van Stijn
3014a55736
cmd/docker-trust: update github.com/fvbommel/sortorder v1.2.0
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-02 09:43:02 +02:00
Sebastiaan van Stijn
3cb9f1cb86
vendor: github.com/fvbommel/sortorder v1.2.0
...
full diff: https://github.com/fvbommel/sortorder/compare/v1.1.0...v1.2.0
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-02 09:41:54 +02:00
Sebastiaan van Stijn
fd25e9699e
Merge pull request #7260 from docker/dependabot/github_actions/docker-actions-cc537b3931
...
build(deps): bump docker/docker-agent-action/.github/workflows/review-pr.yml from 2.0.4 to 2.0.5 in the docker-actions group across 1 directory
2026-09-02 09:32:08 +02:00
Sebastiaan van Stijn
e480e6c6fc
volume create: simplify cluster volume options
...
Extract construction of the cluster volume spec from runCreate, and use
struct literals for the individual cluster volume options.
Also simplify topology parsing by reusing ConvertKVStringsToMap, use
slices.SortFunc for deterministic secret ordering, and use max to clamp
negative capacity values to zero.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-02 02:50:28 +02:00
Sebastiaan van Stijn
977d999382
cli/config: use filepath.IsLocal to validate config paths
...
Use filepath.Rel and filepath.IsLocal instead of comparing path prefixes
as strings when checking that a path stays within the config directory.
Also avoid calling Dir multiple times when constructing and validating
the path.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-02 02:50:28 +02:00
Sebastiaan van Stijn
64484430f4
cli-plugins: modernize with slices and maps packages
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-02 02:50:28 +02:00
Sebastiaan van Stijn
7631c67208
e2e: modernize
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-02 02:50:28 +02:00
Sebastiaan van Stijn
b1780e06a0
opts: modernize with slices and maps packages
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-02 02:50:27 +02:00
Sebastiaan van Stijn
6ea81b3e2e
templates: modernize with slices and maps packages
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-02 02:50:27 +02:00
Sebastiaan van Stijn
33d586d81f
cli/compose: modernize with slices and maps packages
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-02 02:50:27 +02:00
Sebastiaan van Stijn
ed406be52e
cli/command: modernize with slices and maps packages
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-02 02:50:27 +02:00
Sebastiaan van Stijn
be607d1163
Merge pull request #7227 from kawmy/7226-preserve-mount-order
...
cli/command/service: preserve mount order on force update
2026-09-02 02:40:47 +02:00
Sebastiaan van Stijn
f838c7c84b
cmd/docker-trust: modernize with slices and maps packages
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-02 01:28:55 +02:00
Sebastiaan van Stijn
bcc4be9f8b
cmd/docker: fix stringSliceReplaceAt with overlapping matches
...
Inline the sub-slice lookup into stringSliceReplaceAt and use
slices.Equal to compare candidate ranges. When a specific index is
required, check that position directly instead of searching the full
slice.
This also fixes overlapping matches and uses slices.Concat to construct
the replacement result.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-01 21:30:59 +02:00
Sebastiaan van Stijn
f0f38d5cb9
cmd/docker: rewrite TestStringSliceReplaceAt to table test
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-01 21:30:58 +02:00
Dean Chen
b4189c2f7f
registry: map login HTTP status through errhttp.ToNative
...
translateV2AuthError only unwraps a url.Error from Do(); a 401
status never went through it. Use errhttp.ToNative so Auth()
treats that 401 as unauthorized and stops.
Signed-off-by: Dean Chen <862469039@qq.com >
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-09-01 17:24:38 +02:00
Sebastiaan van Stijn
4a9a0ab3aa
Merge pull request #7265 from vvoland/docs-dockerd
...
dockerd: Document new options
2026-09-01 17:10:11 +02:00
Paweł Gronowski
7b7eb0ef6b
dockerd: Document custom AppArmor profiles
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2026-09-01 16:53:25 +02:00
Paweł Gronowski
a458c3871c
dockerd: Document default-stop-timeout
...
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com >
2026-09-01 16:30:31 +02:00
Sebastiaan van Stijn
dc67811426
Merge pull request #6976 from olabie2/6973-print-error-before-plugin-hooks
...
cmd/docker: print command error before running plugin hooks
2026-09-01 13:42:53 +02:00
dependabot[bot]
1164af3e60
build(deps): bump docker/docker-agent-action/.github/workflows/review-pr.yml
...
Bumps the docker-actions group with 1 update in the / directory: [docker/docker-agent-action/.github/workflows/review-pr.yml](https://github.com/docker/docker-agent-action ).
Updates `docker/docker-agent-action/.github/workflows/review-pr.yml` from 2.0.4 to 2.0.5
- [Release notes](https://github.com/docker/docker-agent-action/releases )
- [Commits](https://github.com/docker/docker-agent-action/compare/b08367e7e9a471822464be2bb9fdaa1c0fb6061b...06e1767af06263c93d712449cbf859778d9392ee )
---
updated-dependencies:
- dependency-name: docker/docker-agent-action/.github/workflows/review-pr.yml
dependency-version: 2.0.5
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: docker-actions
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-09-01 08:41:28 +00:00
Mohammed Olabie
cffd24dea4
cmd/docker: print command error before running plugin hooks
...
Plugin hook output (such as Gordon's "What's next:" hint) was rendered
before the command's own error message because hooks were invoked inside
runDocker while the error was only printed in main() after runDocker
returned.
Print the error to stderr before invoking the hooks, and replace the
error with a status-only StatusError so main() does not print the same
message a second time. The original error message is captured up-front
and still passed to the plugin hooks.
The inline error-printing block in runDocker is extracted into a
printCommandError helper so the new behavior can be unit-tested
directly without spinning up runDocker.
TestPrintCommandError covers each branch of the helper: nil error,
generic error (printed and replaced with StatusError), StatusError
with/without message, context.Canceled (raw and wrapped), and
errCtxSignalTerminated.
Signed-off-by: Mohammed Olabie <olabiedev@gmail.com >
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-08-31 19:20:27 +02:00
Sebastiaan van Stijn
5a7e00d7c2
Merge pull request #7250 from FrancescoCastaldi/fix/2761-zsh-plugins-completion
...
completion: fix zsh __docker_plugins bad math expression
2026-08-31 18:32:06 +02:00
FrancescoCastaldi
63da0b015b
completion: fix zsh __docker_plugins bad math expression
...
Use 'docker plugin ls --format' to extract plugin names and IDs, escaping colons in the plugin name (e.g. repo:tag) so zsh _describe treats the ID correctly as description.
Fixes #2761
Signed-off-by: FrancescoCastaldi <francesco.castaldi@mapsgroup.it >
2026-08-31 17:24:39 +02:00
Paweł Gronowski
cef1e66947
Merge pull request #7256 from thaJeztah/bump_go_events
...
vendor: github.com/docker/go-events v0.1.0
2026-08-28 21:50:23 +02:00
Paweł Gronowski
52611d0d6a
Merge pull request #7257 from thaJeztah/bump_compress
...
vendor: github.com/klauspost/compress v1.19.2
2026-08-28 21:50:14 +02:00
Paweł Gronowski
6292b73b99
Merge pull request #7255 from thaJeztah/bump_credshelper
...
vendor: github.com/docker/docker-credential-helpers v0.9.9
2026-08-28 21:50:12 +02:00
Sebastiaan van Stijn
84d70fbdc3
Merge pull request #7258 from thaJeztah/bump_go126
...
update minimum go version to go1.26 and go fix
2026-08-28 21:48:36 +02:00
Sebastiaan van Stijn
4239f5d121
go fix (omitzero)
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-08-28 21:21:39 +02:00
Sebastiaan van Stijn
be9ca38f8b
go fix for go1.26
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-08-28 21:21:35 +02:00
Sebastiaan van Stijn
8eb66b47e3
update minimum go version to go1.26
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-08-28 20:46:02 +02:00
Sebastiaan van Stijn
76b505b054
vendor: github.com/klauspost/compress v1.19.2
...
full diff: https://github.com/klauspost/compress/compare/v1.18.7...v1.19.2
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-08-28 20:36:33 +02:00
Sebastiaan van Stijn
65b90d8888
vendor: github.com/docker/go-events v0.1.0
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-08-28 20:33:30 +02:00
Sebastiaan van Stijn
0f0e561a3f
vendor: github.com/docker/docker-credential-helpers v0.9.9
...
full diff: https://github.com/docker/docker-credential-helpers/compare/v0.9.8...v0.9.9
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2026-08-28 20:31:43 +02:00
Sebastiaan van Stijn
573a46e506
Merge pull request #7223 from vvoland/fix-review
...
gha: Grant PR review permissions required by v2.0.3
v29.8.0-rc.1
2026-08-28 12:41:48 +02:00
Sebastiaan van Stijn
433ab01649
Merge pull request #7252 from docker/dependabot/github_actions/codeql-actions-f442528237
...
build(deps): bump the codeql-actions group with 3 updates
2026-08-28 12:40:53 +02:00
Sebastiaan van Stijn
175b4e0a98
Merge pull request #7253 from docker/dependabot/github_actions/docker-actions-93f31bce83
...
build(deps): bump docker/github-builder/.github/workflows/bake.yml from 1.16.0 to 1.17.0 in the docker-actions group
2026-08-28 12:40:07 +02:00