From f82a38e160e71b6f214dd14e770da99223ec0392 Mon Sep 17 00:00:00 2001 From: CuiHaozhi Date: Tue, 28 Feb 2017 22:21:43 +0800 Subject: [PATCH] container can be in stopped status from create process. Signed-off-by: CuiHaozhi --- exec.go | 2 +- start.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exec.go b/exec.go index d25123016..44b276966 100644 --- a/exec.go +++ b/exec.go @@ -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 { diff --git a/start.go b/start.go index 9dd9dfd67..435661491 100644 --- a/start.go +++ b/start.go @@ -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")