Run runs the root container.
()
| 1048 | |
| 1049 | // Run runs the root container. |
| 1050 | func (l *Loader) Run() error { |
| 1051 | err := l.run() |
| 1052 | l.ctrl.manager.startResultChan <- err |
| 1053 | if err != nil { |
| 1054 | // Give the controller some time to send the error to the |
| 1055 | // runtime. If we return too quickly here the process will exit |
| 1056 | // and the control connection will be closed before the error |
| 1057 | // is returned. |
| 1058 | gtime.Sleep(2 * gtime.Second) |
| 1059 | return err |
| 1060 | } |
| 1061 | return nil |
| 1062 | } |
| 1063 | |
| 1064 | func (l *Loader) run() error { |
| 1065 | if l.root.conf.Network == config.NetworkHost { |