Add config support to executor backend

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
This commit is contained in:
Aaron Lehmann
2017-03-16 14:23:33 -07:00
parent a58cc35ab8
commit 9e9fc7b57c
14 changed files with 208 additions and 50 deletions

17
daemon/dependency.go Normal file
View File

@@ -0,0 +1,17 @@
package daemon
import (
"github.com/docker/swarmkit/agent/exec"
)
// SetContainerDependencyStore sets the dependency store backend for the container
func (daemon *Daemon) SetContainerDependencyStore(name string, store exec.DependencyGetter) error {
c, err := daemon.GetContainer(name)
if err != nil {
return err
}
c.DependencyStore = store
return nil
}