ClusterHQ / docker-plugins

A temporary fork of Docker for working on docker plugin mechanism (mainly for issue tracker, wiki)
Apache License 2.0
1 stars 2 forks source link

Handle plugin containers stopping #15

Open lukemarsden opened 9 years ago

lukemarsden commented 9 years ago

When a plugin container dies or is removed, it should be removed from the list of plugins that endpoints iterate over.

However if a plugin container has a restart policy, it should be able to reconnect and re-register as a plugin.

lukemarsden commented 9 years ago

Currently lack of plugin deregister event means that many dead plugins are building up during test runs:

[vagrant@node1 ~]$ sudo docker info                                                                              
Containers: 1
Images: 82
Plugins: 7
Storage Driver: devicemapper

(https://github.com/ClusterHQ/powerstrip-flocker/blob/clean-volume-plugin/powerstripflocker/test/test_acceptance.py, https://github.com/ClusterHQ/docker-plugins/pull/17 etc)