mirror of
https://github.com/moby/moby.git
synced 2026-08-12 12:15:08 +00:00
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>
(cherry picked from commit dfd9187305)
15 lines
386 B
Go
15 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)
|
|
}
|