2015-10-08 15:57:30 +00:00
|
|
|
// +build experimental
|
|
|
|
|
|
|
|
package daemon
|
|
|
|
|
2016-07-01 18:36:11 +00:00
|
|
|
import (
|
2016-07-18 15:02:12 +00:00
|
|
|
"github.com/docker/docker/libcontainerd"
|
2016-07-01 18:36:11 +00:00
|
|
|
"github.com/docker/docker/plugin"
|
|
|
|
"github.com/docker/engine-api/types/container"
|
|
|
|
)
|
2015-10-08 15:57:30 +00:00
|
|
|
|
2015-12-18 18:36:17 +00:00
|
|
|
func (daemon *Daemon) verifyExperimentalContainerSettings(hostConfig *container.HostConfig, config *container.Config) ([]string, error) {
|
2015-10-08 15:57:30 +00:00
|
|
|
return nil, nil
|
|
|
|
}
|
2016-07-01 18:36:11 +00:00
|
|
|
|
2016-07-18 15:02:12 +00:00
|
|
|
func pluginInit(d *Daemon, cfg *Config, remote libcontainerd.Remote) error {
|
|
|
|
return plugin.Init(cfg.Root, remote, d.RegistryService, cfg.LiveRestore, d.LogPluginEvent)
|
|
|
|
}
|
|
|
|
|
2016-07-01 18:36:11 +00:00
|
|
|
func pluginShutdown() {
|
2016-07-18 15:02:12 +00:00
|
|
|
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()
|
|
|
|
}
|
2016-07-01 18:36:11 +00:00
|
|
|
}
|