mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Revert "Make plugins dir private."
This reverts commit 0c2821d6f2
.
Due to other changes this is no longer needed and resolves some other
issues with plugins.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
This commit is contained in:
parent
0e5eaf8ee3
commit
37d7b7ddc3
3 changed files with 0 additions and 15 deletions
|
@ -111,11 +111,6 @@ func NewManager(config ManagerConfig) (*Manager, error) {
|
|||
return nil, errors.Wrapf(err, "failed to mkdir %v", dirName)
|
||||
}
|
||||
}
|
||||
|
||||
if err := setupRoot(manager.config.Root); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var err error
|
||||
manager.executor, err = config.CreateExecutor(manager)
|
||||
if err != nil {
|
||||
|
|
|
@ -159,13 +159,6 @@ func shutdownPlugin(p *v2.Plugin, c *controller, executor Executor) {
|
|||
}
|
||||
}
|
||||
|
||||
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 errors.Wrap(errDisabled(p.Name()), "plugin is already disabled")
|
||||
|
@ -194,7 +187,6 @@ func (pm *Manager) Shutdown() {
|
|||
shutdownPlugin(p, c, pm.executor)
|
||||
}
|
||||
}
|
||||
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) {
|
||||
|
|
|
@ -26,5 +26,3 @@ func (pm *Manager) restore(p *v2.Plugin) error {
|
|||
// Shutdown plugins
|
||||
func (pm *Manager) Shutdown() {
|
||||
}
|
||||
|
||||
func setupRoot(root string) error { return nil }
|
||||
|
|
Loading…
Reference in a new issue