moby/plugin
Brian Goff 93027b1ff2 Ignore exist/not-exist errors on plugin remove
During a plugin remove, docker performs an `os.Rename` to move the
plugin data dir to a new location before removing to acheive an atomic
removal.

`os.Rename` can return either a `NotExist` error if the source path
doesn't exist, or an `Exist` error if the target path already exists.
Both these cases can happen when there is an error on the final
`os.Remove` call, which is common on older kernels (`device or resource
busy`).

When calling rename, we can safely ignore these error types and proceed
to try and remove the plugin.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2018-01-25 09:23:54 -08:00
..
executor/containerd Update daemon code for containerd API changes 2017-11-30 09:55:03 -05:00
v2 Fix potential panic during plugin set. 2017-11-28 13:06:24 -08:00
backend_linux.go Ignore exist/not-exist errors on plugin remove 2018-01-25 09:23:54 -08:00
backend_linux_test.go Ignore exist/not-exist errors on plugin remove 2018-01-25 09:23:54 -08:00
backend_unsupported.go Make plugin emit strongly typed, consumable events 2017-07-06 14:26:06 -04:00
blobstore.go LCOW: API: Add platform to /images/create and /build 2017-10-06 11:44:18 -07:00
defs.go Make plugin emit strongly typed, consumable events 2017-07-06 14:26:06 -04:00
errors.go Remove string checking in API error handling 2017-08-15 16:01:11 -04:00
events.go Make plugin emit strongly typed, consumable events 2017-07-06 14:26:06 -04:00
manager.go Nitpick plugin/manager.go: use loop to create directories 2017-11-01 11:29:37 +02:00
manager_linux.go Update libcontainerd to use containerd 1.0 2017-10-20 07:11:37 -07:00
manager_linux_test.go Add test to check for plugin mounts on remove 2017-12-04 22:01:14 -05:00
manager_solaris.go Make plugins dir private. 2017-08-02 16:58:07 -04:00
manager_test.go fixed:go vetting warning unkeyed fields 2017-03-20 16:30:01 +08:00
manager_windows.go Make plugins dir private. 2017-08-02 16:58:07 -04:00
store.go Fixup some issues with plugin refcounting 2017-10-21 15:17:57 -04:00
store_test.go Fixup some issues with plugin refcounting 2017-10-21 15:17:57 -04:00