mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Check dockerinit only if lxc driver is used
This allow you to run dynamically linked docker without compiling dockerinit. Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
42eb82ae92
commit
96bc377a8d
1 changed files with 7 additions and 3 deletions
|
@ -698,9 +698,13 @@ func NewDaemon(config *Config, registryService *registry.Service) (daemon *Daemo
|
||||||
|
|
||||||
d.containerGraph = graph
|
d.containerGraph = graph
|
||||||
|
|
||||||
sysInitPath, err := configureSysInit(config)
|
var sysInitPath string
|
||||||
if err != nil {
|
if config.ExecDriver == "lxc" {
|
||||||
return nil, err
|
initPath, err := configureSysInit(config)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
sysInitPath = initPath
|
||||||
}
|
}
|
||||||
|
|
||||||
sysInfo := sysinfo.New(false)
|
sysInfo := sysinfo.New(false)
|
||||||
|
|
Loading…
Add table
Reference in a new issue