Skip to content

Commit

Permalink
Merge pull request docker-archive#2 from mlaventure/chp-moby-33422
Browse files Browse the repository at this point in the history
Don't unmount entire plugin manager tree on remove
  • Loading branch information
andrewhsu authored Jun 5, 2017
2 parents 041f3bb + 63460e3 commit a2bfb1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/backend_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,8 +633,8 @@ func (pm *Manager) Remove(name string, config *types.PluginRmConfig) error {
id := p.GetID()
pm.config.Store.Remove(p)
pluginDir := filepath.Join(pm.config.Root, id)
if err := recursiveUnmount(pm.config.Root); err != nil {
logrus.WithField("dir", pm.config.Root).WithField("id", id).Warn(err)
if err := recursiveUnmount(pluginDir); err != nil {
logrus.WithField("dir", pluginDir).WithField("id", id).Warn(err)
}
if err := os.RemoveAll(pluginDir); err != nil {
logrus.Warnf("unable to remove %q from plugin remove: %v", pluginDir, err)
Expand Down

0 comments on commit a2bfb1a

Please sign in to comment.