summaryrefslogtreecommitdiff
path: root/libpod/boltdb_state_unsupported.go
diff options
context:
space:
mode:
Diffstat (limited to 'libpod/boltdb_state_unsupported.go')
-rw-r--r--libpod/boltdb_state_unsupported.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/libpod/boltdb_state_unsupported.go b/libpod/boltdb_state_unsupported.go
index 8d3749881..f6faaa378 100644
--- a/libpod/boltdb_state_unsupported.go
+++ b/libpod/boltdb_state_unsupported.go
@@ -4,8 +4,19 @@ package libpod
import (
"github.com/boltdb/bolt"
+ "github.com/sirupsen/logrus"
)
+// parseNetNSBoltData sets ctr.state.NetNS, if any, from netNSBytes.
+// Returns true if the data is valid.
+func parseNetNSBoltData(ctr *Container, netNSBytes []byte) bool {
+ if netNSBytes != nil {
+ logrus.Errorf("error loading %s: network namespaces are not supported on this platform", ctr.ID())
+ return false
+ }
+ return true
+}
+
func (s *BoltState) getContainerFromDB(id []byte, ctr *Container, ctrsBkt *bolt.Bucket) error {
return ErrNotImplemented
}