MCPcopy Index your code
hub / github.com/google/gvisor / Run

Method Run

runsc/boot/loader.go:1050–1062  ·  view source on GitHub ↗

Run runs the root container.

()

Source from the content-addressed store, hash-verified

1048
1049// Run runs the root container.
1050func (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
1064func (l *Loader) run() error {
1065 if l.root.conf.Network == config.NetworkHost {

Callers

nothing calls this directly

Calls 1

runMethod · 0.95

Tested by

no test coverage detected