mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
4d529895f0
Signed-off-by: Anusha Ragunathan <anusha@docker.com>
(cherry picked from commit 42abccb841
)
Signed-off-by: Tibor Vass <tibor@docker.com>
26 lines
753 B
Go
26 lines
753 B
Go
// +build experimental
|
|
|
|
package daemon
|
|
|
|
import (
|
|
"github.com/docker/docker/libcontainerd"
|
|
"github.com/docker/docker/plugin"
|
|
"github.com/docker/engine-api/types/container"
|
|
)
|
|
|
|
func (daemon *Daemon) verifyExperimentalContainerSettings(hostConfig *container.HostConfig, config *container.Config) ([]string, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func pluginInit(d *Daemon, cfg *Config, remote libcontainerd.Remote) error {
|
|
return plugin.Init(cfg.Root, remote, d.RegistryService, cfg.LiveRestore, d.LogPluginEvent)
|
|
}
|
|
|
|
func pluginShutdown() {
|
|
manager := plugin.GetManager()
|
|
// Check for a valid manager object. In error conditions, daemon init can fail
|
|
// and shutdown called, before plugin manager is initialized.
|
|
if manager != nil {
|
|
manager.Shutdown()
|
|
}
|
|
}
|