What is exactly happening when you're Docker Commiting a container?

后端 未结 1 929
轻奢々
轻奢々 2021-01-07 11:46

I know that when you use, for example, docker commit abcdefgh ola/minhaimagem:1.0 you are saving your changes from the abcdefgh container into

相关标签:
1条回答
  • 2021-01-07 12:33

    As mentioned in docker commit:

    By default, the container being committed and its processes will be paused while the image is committed. This reduces the likelihood of encountering data corruption during the process of creating the commit.

    That step (waiting for the processes to pause) can take time.

    If this behavior is undesired, set the --pause option to false.

    You can see the actual commit call in api/server/router/image/image_routes.go#postCommit() which is then routed through a backend to daemon/commit.go#Commit()

    0 讨论(0)
提交回复
热议问题