aboutsummaryrefslogtreecommitdiff
path: root/libpod/boltdb_state.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/boltdb_state.go')
-rw-r--r--libpod/boltdb_state.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/libpod/boltdb_state.go b/libpod/boltdb_state.go
index 5502ec1b4..3584c9a9d 100644
--- a/libpod/boltdb_state.go
+++ b/libpod/boltdb_state.go
@@ -69,6 +69,14 @@ func NewBoltState(path, lockDir string, runtime *Runtime) (State, error) {
if err != nil {
return errors.Wrapf(err, "error creating container-depends bucket")
}
+ _, err = tx.CreateBucketIfNotExists(podBkt)
+ if err != nil {
+ return errors.Wrapf(err, "error creating pod bucket")
+ }
+ _, err = tx.CreateBucketIfNotExists(podContainersBkt)
+ if err != nil {
+ return errors.Wrapf(err, "error creating pod-containers bucket")
+ }
return nil
})
if err != nil {