Merge pull request #179 from Random-Liu/checkpoint-container-status

Checkpoint container status onto disk.
This commit is contained in:
Lantao Liu
2017-09-06 13:51:38 -07:00
committed by GitHub
19 changed files with 1019 additions and 63 deletions

View File

@@ -204,7 +204,8 @@ func (c *criContainerdService) CreateContainer(ctx context.Context, r *runtime.C
}()
status := containerstore.Status{CreatedAt: time.Now().UnixNano()}
container, err := containerstore.NewContainer(meta, status,
container, err := containerstore.NewContainer(meta,
containerstore.WithStatus(status, containerRootDir),
containerstore.WithContainer(cntr),
containerstore.WithContainerIO(containerIO),
)