Skip to content

Conversation

VincentLeeMax
Copy link
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
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