|
@@ -90,12 +90,7 @@ func (ctr *container) spec() (*specs.Spec, error) {
|
|
|
return &spec, nil
|
|
|
}
|
|
|
|
|
|
-func (ctr *container) start(checkpoint string, checkpointDir string, attachStdio StdioCallback) (err error) {
|
|
|
- spec, err := ctr.spec()
|
|
|
- if err != nil {
|
|
|
- return nil
|
|
|
- }
|
|
|
-
|
|
|
+func (ctr *container) start(spec *specs.Spec, checkpoint, checkpointDir string, attachStdio StdioCallback) (err error) {
|
|
|
ctx, cancel := context.WithCancel(context.Background())
|
|
|
defer cancel()
|
|
|
ready := make(chan struct{})
|
|
@@ -172,6 +167,7 @@ func (ctr *container) start(checkpoint string, checkpointDir string, attachStdio
|
|
|
State: StateStart,
|
|
|
Pid: ctr.systemPid,
|
|
|
}})
|
|
|
+
|
|
|
}
|
|
|
|
|
|
func (ctr *container) newProcess(friendlyName string) *process {
|