Prepare startContainer() to have more action

Currently startContainer() is used to create and to run a container.
In the next patch it will be used to restore a container.

Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Andrei Vagin
2017-03-02 10:48:00 +03:00
parent 1a8b0aced5
commit a4fcbfb704
5 changed files with 37 additions and 113 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ command(s) that get executed on start, edit the args parameter of the spec. See
if err != nil {
return err
}
status, err := startContainer(context, spec, false)
status, err := startContainer(context, spec, CT_ACT_RUN, nil)
if err == nil {
// exit with the container's exit status so any external supervisor is
// notified of the exit with the correct exit status.