|
@@ -162,6 +162,13 @@ func shutdownPlugin(p *v2.Plugin, c *controller, containerdClient libcontainerd.
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+func setupRoot(root string) error {
|
|
|
+ if err := mount.MakePrivate(root); err != nil {
|
|
|
+ return errors.Wrap(err, "error setting plugin manager root to private")
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
func (pm *Manager) disable(p *v2.Plugin, c *controller) error {
|
|
|
if !p.IsEnabled() {
|
|
|
return fmt.Errorf("plugin %s is already disabled", p.Name())
|
|
@@ -190,6 +197,7 @@ func (pm *Manager) Shutdown() {
|
|
|
shutdownPlugin(p, c, pm.containerdClient)
|
|
|
}
|
|
|
}
|
|
|
+ mount.Unmount(pm.config.Root)
|
|
|
}
|
|
|
|
|
|
func (pm *Manager) upgradePlugin(p *v2.Plugin, configDigest digest.Digest, blobsums []digest.Digest, tmpRootFSDir string, privileges *types.PluginPrivileges) (err error) {
|