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

Commit

Permalink
don't store the containerconfig info into db
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
lifupan committed Jul 3, 2018
1 parent 5db41e2 commit 43c5e34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions daemon/pod/persist.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,10 @@ func (p *XPod) removePortMappingFromDB() error {

func (c *Container) saveContainer() error {
cx := &types.PersistContainer{
Id: c.Id(),
Pod: c.p.Id(),
Spec: c.spec,
ContConfig: c.contConfig,
Id: c.Id(),
Pod: c.p.Id(),
Spec: c.spec,
// ContConfig: c.contConfig,
}
return saveMessage(c.p.factory.db, fmt.Sprintf(CX_KEY_FMT, c.Id()), cx, c, "container info")
}
Expand Down

0 comments on commit 43c5e34

Please sign in to comment.