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