client: ContainerListOptions: deprecate Since, Before, and Latest fields#51908
Merged
thaJeztah merged 2 commits intomoby:masterfrom Jan 23, 2026
Merged
client: ContainerListOptions: deprecate Since, Before, and Latest fields#51908thaJeztah merged 2 commits intomoby:masterfrom
Since, Before, and Latest fields#51908thaJeztah merged 2 commits intomoby:masterfrom
Conversation
…fore The `Before` and `Since` options were used for the `before` and `since` query parameters. These parameters were replaced with the `before` and `since` filters in docker 1.10.0 (API 1.22)through [moby/moby@1921c62], and [moby/moby@b41dba5]. The query parameters were removed from the CLI and daemon in docker 1.12.0 (API 1.24) through [moby/moby@91b7157], however the fields themselves were never removed. This patch deprecates the fields as they are non-functional. [moby/moby@1921c62]: moby@1921c62 [moby/moby@b41dba5]: moby@b41dba5 [moby/moby@91b7157]: moby@91b7157 Signed-off-by: Sebastiaan van Stijn <[email protected]>
The `--latest` option was implemented in [moby/moby@b295239] as a CLI shortcut for `--last=1`. However, as part of a large refactor of the client in [moby/moby@d05aa41], a `ContainerListOptions` type was introduced, which contained a `Latest` field. This field was never used, as the `Latest` option was handled in the CLI, and had no corresponding option for the API (other than `limit`). This patch deprecates the field as it is non-functional. [moby/moby@b295239]: moby@b295239 [moby/moby@d05aa41]: moby@d05aa41 Signed-off-by: Sebastiaan van Stijn <[email protected]>
vvoland
approved these changes
Jan 23, 2026
vvoland
approved these changes
Jan 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
relates to:
Before,Since, andLatestfields #51878client: deprecate ContainerListOptions.Since, ContainerListOptions.Before
The
BeforeandSinceoptions were used for thebeforeandsincequery parameters. These parameters were replaced with the
beforeandsincefilters in docker 1.10.0 (API 1.22)through moby@1921c62, andmoby@b41dba5.
The query parameters were removed from the CLI and daemon in docker 1.12.0
(API 1.24) through moby@91b7157, however the fields themselves were never
removed.
This patch deprecates the fields as they are non-functional.
client: deprecate ContainerListOptions.Latest
The
--latestoption was implemented in moby@b295239 as a CLI shortcutfor
--last=1.However, as part of a large refactor of the client in moby@d05aa41, a
ContainerListOptionstype was introduced, which contained aLatestfield.
This field was never used, as the
Latestoption was handled in the CLI,and had no corresponding option for the API (other than
limit).This patch deprecates the field as it is non-functional.
- Human readable description for the release notes
- A picture of a cute animal (not mandatory but encouraged)