Skip to content

feat: add pause option to commit api#3159

Merged
milas merged 2 commits intodocker:mainfrom
VincentLeeMax:commit_pause
Aug 14, 2023
Merged

feat: add pause option to commit api#3159
milas merged 2 commits intodocker:mainfrom
VincentLeeMax:commit_pause

Conversation

@VincentLeeMax
Copy link
Copy Markdown
Contributor

When using container.commit() function, it default to pause the container before committing. In some case that could't pause the container, we need to use container.commit(pause=False)

Signed-off-by: VincentLeeMax <lichlee@yeah.net>
Copy link
Copy Markdown
Contributor

@milas milas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

From https://docs.docker.com/engine/api/v1.43/#tag/Image/operation/ImageCommit:

pause [boolean]
Default: true
Whether to pause the container before committing

@milas milas merged commit 4571f7f into docker:main Aug 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants