Skip to content

client: ContainerCommitOptions: change "Pause" to "NoPause"#51019

Merged
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:client_commit_no_pause
Sep 23, 2025
Merged

client: ContainerCommitOptions: change "Pause" to "NoPause"#51019
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:client_commit_no_pause

Conversation

@thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Sep 22, 2025

relates to:

client: ContainerCommitOptions: change "Pause" to "NoPause"

Commit moby@17d870b (API v1.13, docker v1.1.0) changed the default to pause containers during commit, keeping the behavior opt-in for older API versions. This version-gate was removed in moby@1b1147e because API versions lower than v1.23 were no longer supported.

However, the client still required opting-in to pausing containers, which is handled by setting the Pause field to true by default. This patch changes the client option to reflect the default; after this change, we should also consider changing the API make disabling pause a more explicit option, and to change the "pause" argument to a "no-pause".

daemon/server/backend: CreateImageConfig: change "Pause" to "NoPause"

Commit moby@17d870b (API v1.13, docker v1.1.0) changed the default to pause
containers during commit, keeping the behavior opt-in for older API versions.
This version-gate was removed in moby@1b1147e because API versions lower
than v1.23 were no longer supported.

However, the CreateImageConfig struct still used Pause, and required opting-
in to enable pausing. This patch changes the struct to reflect the default.
after this change, we should also consider changing the API make disabling
pause a more explicit option, and to change the "pause" argument to a
"no-pause".

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

client: `ContainerCommitOptions`: remove `Pause` field in favor of  `NoPause`.

- A picture of a cute animal (not mandatory but encouraged)

@thaJeztah thaJeztah added this to the 29.0.0 milestone Sep 22, 2025
@thaJeztah thaJeztah added status/2-code-review impact/changelog kind/refactor PR's that refactor, or clean-up code impact/go-sdk Noteworthy (compatibility changes) in the Go SDK module/client area/go-sdk labels Sep 22, 2025
@thaJeztah
Copy link
Member Author

GitHub having a bad day?

Screenshot 2025-09-22 at 12 25 35

@thaJeztah thaJeztah force-pushed the client_commit_no_pause branch from ec1806b to 07e72d1 Compare September 22, 2025 11:09
Commit [moby/moby@17d870b] (API v1.13, docker v1.1.0) changed the default to pause
containers during commit, keeping the behavior opt-in for older API versions.
This version-gate was removed in [moby/moby@1b1147e] because API versions lower
than v1.23 were no longer supported.

However, the client still required opting-in to pausing containers, which
is handled by setting the `Pause` field to true by default. This patch changes
the client option to reflect the default; after this change, we should also
consider changing the API make disabling pause a more explicit option, and
to change the "pause" argument to a "no-pause".

[moby/moby@17d870b]: moby@17d870b
[moby/moby@1b1147e]: moby@1b1147e

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Commit [moby/moby@17d870b] (API v1.13, docker v1.1.0) changed the default to pause
containers during commit, keeping the behavior opt-in for older API versions.
This version-gate was removed in [moby/moby@1b1147e] because API versions lower
than v1.23 were no longer supported.

However, the `CreateImageConfig` struct still used `Pause`, and required opting-
in to enable pausing. This patch changes the struct to reflect the default.
after this change, we should also consider changing the API make disabling
pause a more explicit option, and to change the "pause" argument to a
"no-pause".

[moby/moby@17d870b]: moby@17d870b
[moby/moby@1b1147e]: moby@1b1147e

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah merged commit b2320da into moby:master Sep 23, 2025
242 of 244 checks passed
@thaJeztah thaJeztah deleted the client_commit_no_pause branch September 23, 2025 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/go-sdk impact/changelog impact/go-sdk Noteworthy (compatibility changes) in the Go SDK kind/refactor PR's that refactor, or clean-up code module/client status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants