From 896ebb1ca2a6ae23d7511678aaab1d4e32c54ff9 Mon Sep 17 00:00:00 2001 From: "Kai Qiang Wu(Kennan)" Date: Thu, 21 Apr 2016 03:24:10 +0000 Subject: [PATCH] Fix the old exit status example Signed-off-by: Kai Qiang Wu(Kennan) --- docs/reference/run.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/reference/run.md b/docs/reference/run.md index b37dd5ae80..3b9b16c8f5 100644 --- a/docs/reference/run.md +++ b/docs/reference/run.md @@ -562,20 +562,18 @@ the exit codes follow the `chroot` standard, see below: **_126_** if the **_contained command_** cannot be invoked $ docker run busybox /etc; echo $? - # exec: "/etc": permission denied - docker: Error response from daemon: Contained command could not be invoked + # docker: Error response from daemon: Container command '/etc' could not be invoked. 126 **_127_** if the **_contained command_** cannot be found $ docker run busybox foo; echo $? - # exec: "foo": executable file not found in $PATH - docker: Error response from daemon: Contained command not found or does not exist + # docker: Error response from daemon: Container command 'foo' not found or does not exist. 127 **_Exit code_** of **_contained command_** otherwise - $ docker run busybox /bin/sh -c 'exit 3' + $ docker run busybox /bin/sh -c 'exit 3'; echo $? # 3 ## Clean up (--rm)