Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit 43c5e34

Browse files
committed
don't store the containerconfig info into db
Since the ContainerConfig info is not used in restoring a container, there is no need to save it into db. Signed-off-by: fupan <[email protected]>
1 parent 5db41e2 commit 43c5e34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

daemon/pod/persist.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -356,10 +356,10 @@ func (p *XPod) removePortMappingFromDB() error {
356356

357357
func (c *Container) saveContainer() error {
358358
cx := &types.PersistContainer{
359-
Id: c.Id(),
360-
Pod: c.p.Id(),
361-
Spec: c.spec,
362-
ContConfig: c.contConfig,
359+
Id: c.Id(),
360+
Pod: c.p.Id(),
361+
Spec: c.spec,
362+
// ContConfig: c.contConfig,
363363
}
364364
return saveMessage(c.p.factory.db, fmt.Sprintf(CX_KEY_FMT, c.Id()), cx, c, "container info")
365365
}

0 commit comments

Comments
 (0)