1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/plugin
Brian Goff dbeb432965 Fix panic on daemon restart with running plugin
Scenario:

Daemon is ungracefully shutdown and leaves plugins running (no
live-restore).
Daemon comes back up.
The next time a container tries to use that plugin it will cause a
daemon panic because the plugin client is not set.

This fixes that by ensuring that the plugin does get shutdown.
Note, I do not think there would be any harm in just re-attaching to the
running plugin instead of shutting it down, however historically we shut
down plugins and containers when live-restore is not enabled.

[kir@: consolidate code to deleteTaskAndContainer, a few minor nits]

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2018-06-07 17:27:02 -07:00
..
executor/containerd Fix panic on daemon restart with running plugin 2018-06-07 17:27:02 -07:00
v2 Move plugin client creation to the extension point 2018-05-25 15:18:53 -04:00
backend_linux.go Various code-cleanup 2018-05-23 17:50:54 +02:00
backend_linux_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
backend_unsupported.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
blobstore.go Switch from x/net/context -> context 2018-04-23 13:52:44 -07:00
defs.go Various code-cleanup 2018-05-23 17:50:54 +02:00
errors.go Add canonical import comment 2018-02-05 16:51:57 -05:00
events.go Add canonical import comment 2018-02-05 16:51:57 -05:00
manager.go Fix panic on daemon restart with running plugin 2018-06-07 17:27:02 -07:00
manager_linux.go Fix panic on daemon restart with running plugin 2018-06-07 17:27:02 -07:00
manager_linux_test.go Fix panic on daemon restart with running plugin 2018-06-07 17:27:02 -07:00
manager_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
manager_windows.go Fix panic on daemon restart with running plugin 2018-06-07 17:27:02 -07:00
store.go Various code-cleanup 2018-05-23 17:50:54 +02:00
store_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00