Files
docker-cli/components/engine/daemon
Vivek Goyal 2fb3d3917e docker: Unmount -init layer root before taking a snapshot
When we are creating a container, first we call into graph driver to take
snapshot of image and create root for container-init. Then we write some
files to it and call into graph driver again to create container root
from container-init as base.

Once we have written files to container-init root, we don't unmount it
before taking a snapshot of it. Looks like with XFS it leaves it in such
a state that when we mount the container root, it goes into log recovery
path.

Jul 22 10:24:54 vm2-f22 kernel: XFS (dm-6): Mounting V4 Filesystem
Jul 22 10:24:54 vm2-f22 kernel: XFS (dm-6): Starting recovery (logdev: internal)
Jul 22 10:24:54 vm2-f22 kernel: XFS (dm-6): Ending recovery (logdev: internal)

This should not be required. So let us unmount container-init before use
it  as a base for container root and then XFS does not go into this
internal recovery path.

Somebody had raised this issue for ext4 sometime back and proposed the same
change. I had shot it down at that point of time. I think now time has
come for this change.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Upstream-commit: fe26669205e12a1ca62dcc37a251cf7bfca9cb89
Component: engine
2015-07-22 10:32:53 -04:00
..
2015-04-07 08:43:14 -07:00
2015-07-21 22:49:49 +08:00
2015-05-14 15:57:45 -07:00
2015-06-01 12:39:28 -07:00
2015-06-01 12:39:28 -07:00
2015-07-22 00:47:41 +01:00
2015-06-01 12:39:28 -07:00
2014-05-17 17:56:02 +00:00
2015-06-01 12:39:28 -07:00
2015-06-01 12:39:28 -07:00
2015-07-16 15:33:13 -07:00
2015-07-02 16:12:42 -07:00
2015-07-16 16:02:26 -07:00
2015-07-16 16:02:26 -07:00
2015-07-16 16:02:26 -07:00
2015-07-16 16:02:26 -07:00
2015-06-01 12:39:28 -07:00
2015-06-01 12:39:28 -07:00
2015-06-01 12:39:28 -07:00
2015-07-16 16:02:26 -07:00

This directory contains code pertaining to running containers and storing images

Code pertaining to running containers:

  • execdriver
  • networkdriver

Code pertaining to storing images:

  • graphdriver