Signed-off-by: Anusha Ragunathan <anusha@docker.com>
| ... | ... |
@@ -41,6 +41,11 @@ func (pm *Manager) enable(p *v2.Plugin, c *controller, force bool) error {
|
| 41 | 41 |
} |
| 42 | 42 |
|
| 43 | 43 |
if err := pm.containerdClient.Create(p.GetID(), "", "", specs.Spec(*spec), attachToLog(p.GetID())); err != nil {
|
| 44 |
+ if p.PropagatedMount != "" {
|
|
| 45 |
+ if err := mount.Unmount(p.PropagatedMount); err != nil {
|
|
| 46 |
+ logrus.Warnf("Could not unmount %s: %v", p.PropagatedMount, err)
|
|
| 47 |
+ } |
|
| 48 |
+ } |
|
| 44 | 49 |
return err |
| 45 | 50 |
} |
| 46 | 51 |
|