mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
dfd9187305
This ensures that: - The in-memory plugin store is populated with all the plugins - Plugins which were active before daemon restart are active after. This utilizes the liverestore feature when available, otherwise it manually starts the plugin. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
14 lines
386 B
Go
14 lines
386 B
Go
// +build linux,experimental
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/docker/docker/daemon"
|
|
"github.com/docker/docker/libcontainerd"
|
|
"github.com/docker/docker/plugin"
|
|
"github.com/docker/docker/registry"
|
|
)
|
|
|
|
func pluginInit(config *daemon.Config, remote libcontainerd.Remote, rs registry.Service) error {
|
|
return plugin.Init(config.Root, config.ExecRoot, remote, rs, config.LiveRestore)
|
|
}
|