deprecate "--pause" flag on docker commit in favor of "--no-pause"#6460
Merged
thaJeztah merged 1 commit intodocker:masterfrom Sep 23, 2025
Merged
deprecate "--pause" flag on docker commit in favor of "--no-pause"#6460thaJeztah merged 1 commit intodocker:masterfrom
thaJeztah merged 1 commit intodocker:masterfrom
Conversation
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
robmry
approved these changes
Sep 22, 2025
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.
This patch deprecates the `--pause` flag in favor of a `--no-pause` flag to
be more explicit on the default. The old `--pause` flag is marked deprecated
but still functional. Using the deprecated flag will print a warning, and an
error is produced when trying to use both the old and new flag;
docker commit --pause mycontainer
Flag --pause has been deprecated, and enabled by default. Use --no-pause to disable pausing during commit.
docker commit --pause=false mycontainer
Flag --pause has been deprecated, and enabled by default. Use --no-pause to disable pausing during commit.
docker commit --pause --no-pause mycontainer
Flag --pause has been deprecated, use --no-pause instead
conflicting options: --no-pause and --pause cannot be used together
[moby@17d870b]: moby/moby@17d870b
[moby@1b1147e]: moby/moby@1b1147e
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Member
Author
|
oh! My mistake; linting error; Should be fixed now |
Member
Author
|
I'll bring this one in; after moby/moby#51019, I need to make some follow-up changes, but contemplating to include this / a variant of this in a 28.x release to somewhat speed-up deprecation. |
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:
deprecate "--pause" flag on docker commit in favor of "--no-pause"
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.
This patch deprecates the
--pauseflag in favor of a--no-pauseflag to be more explicit on the default. The old--pauseflag is marked deprecated but still functional. Using the deprecated flag will print a warning, and an error is produced when trying to use both the old and new flag;- What I did
- How I did it
- How to verify it
- Human readable description for the release notes
- A picture of a cute animal (not mandatory but encouraged)