1
0
mirror of https://github.com/opencontainers/runc.git synced 2026-02-05 09:46:08 +01:00

container can be in stopped status from create process.

Signed-off-by: CuiHaozhi <cuihaozhi@chinacloud.com.cn>
This commit is contained in:
CuiHaozhi
2017-02-28 22:21:43 +08:00
parent c50d024500
commit f82a38e160
2 changed files with 2 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ func execProcess(context *cli.Context) (int, error) {
return -1, err
}
if status == libcontainer.Stopped {
return -1, fmt.Errorf("cannot exec a container that has run and stopped")
return -1, fmt.Errorf("cannot exec a container that has stopped")
}
path := context.String("process")
if path == "" && len(context.Args()) == 1 {

View File

@@ -47,7 +47,7 @@ your host.`,
hasError = true
}
case libcontainer.Stopped:
fmt.Fprintln(os.Stderr, "cannot start a container that has run and stopped")
fmt.Fprintln(os.Stderr, "cannot start a container that has stopped")
hasError = true
case libcontainer.Running:
fmt.Fprintln(os.Stderr, "cannot start an already running container")