Checkpoint and restart recovery

fix part of #120

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
This commit is contained in:
yanxuean
2017-08-23 15:07:19 +08:00
parent dcc3cb2a05
commit d2757cb8f9
3 changed files with 36 additions and 2 deletions

View File

@@ -95,6 +95,13 @@ const (
resolvConfPath = "/etc/resolv.conf"
)
const (
// sandboxMetadataLabel is label name that identify metadata of sandbox in CreateContainerRequest
sandboxMetadataLabel = "io.cri-containerd.sandbox.metadata"
// sandboxMetadataLabel is label name that identify metadata of container in CreateContainerRequest
containerMetadataLabel = "io.cri-containerd.container.metadata"
)
// generateID generates a random unique id.
func generateID() string {
return stringid.GenerateNonCryptoID()