Separate plugin sockets and specs.

Check if there is a plugin socket first under `/run/docker/plugins/NAME.sock`.
If there is no socket for a plugin, check `/etc/docker/plugins/NAME.spec` and
`/usr/lib/docker/plugins/NAME.spec` for spec files.

Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
David Calavera 2015-06-15 15:35:49 -07:00
parent f80a5673c1
commit bee3972856
3 changed files with 94 additions and 82 deletions

View file

@ -68,7 +68,7 @@ func (p *Plugin) activate() error {
}
func load(name string) (*Plugin, error) {
registry := newLocalRegistry("")
registry := newLocalRegistry()
pl, err := registry.Plugin(name)
if err != nil {
return nil, err