|
@@ -21,7 +21,6 @@ import (
|
|
|
_ "github.com/docker/docker/daemon/graphdriver/vfs"
|
|
|
_ "github.com/docker/docker/daemon/networkdriver/bridge"
|
|
|
"github.com/docker/docker/daemon/networkdriver/portallocator"
|
|
|
- "github.com/docker/docker/daemonconfig"
|
|
|
"github.com/docker/docker/dockerversion"
|
|
|
"github.com/docker/docker/engine"
|
|
|
"github.com/docker/docker/graph"
|
|
@@ -95,7 +94,7 @@ type Daemon struct {
|
|
|
sysInfo *sysinfo.SysInfo
|
|
|
volumes *graph.Graph
|
|
|
eng *engine.Engine
|
|
|
- config *daemonconfig.Config
|
|
|
+ config *Config
|
|
|
containerGraph *graphdb.Database
|
|
|
driver graphdriver.Driver
|
|
|
execDriver execdriver.Driver
|
|
@@ -664,7 +663,7 @@ func (daemon *Daemon) RegisterLinks(container *Container, hostConfig *runconfig.
|
|
|
}
|
|
|
|
|
|
// FIXME: harmonize with NewGraph()
|
|
|
-func NewDaemon(config *daemonconfig.Config, eng *engine.Engine) (*Daemon, error) {
|
|
|
+func NewDaemon(config *Config, eng *engine.Engine) (*Daemon, error) {
|
|
|
daemon, err := NewDaemonFromDirectory(config, eng)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
@@ -672,7 +671,7 @@ func NewDaemon(config *daemonconfig.Config, eng *engine.Engine) (*Daemon, error)
|
|
|
return daemon, nil
|
|
|
}
|
|
|
|
|
|
-func NewDaemonFromDirectory(config *daemonconfig.Config, eng *engine.Engine) (*Daemon, error) {
|
|
|
+func NewDaemonFromDirectory(config *Config, eng *engine.Engine) (*Daemon, error) {
|
|
|
// Claim the pidfile first, to avoid any and all unexpected race conditions.
|
|
|
// Some of the init doesn't need a pidfile lock - but let's not try to be smart.
|
|
|
if config.Pidfile != "" {
|
|
@@ -1010,7 +1009,7 @@ func (daemon *Daemon) Repositories() *graph.TagStore {
|
|
|
return daemon.repositories
|
|
|
}
|
|
|
|
|
|
-func (daemon *Daemon) Config() *daemonconfig.Config {
|
|
|
+func (daemon *Daemon) Config() *Config {
|
|
|
return daemon.config
|
|
|
}
|
|
|
|