浏览代码

Fix the old exit status example

Signed-off-by: Kai Qiang Wu(Kennan) <wkqwu@cn.ibm.com>
(cherry picked from commit 896ebb1ca2a6ae23d7511678aaab1d4e32c54ff9)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Kai Qiang Wu(Kennan) 9 年之前
父节点
当前提交
fc4f927588
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. 3 5
      docs/reference/run.md

+ 3 - 5
docs/reference/run.md

@@ -563,20 +563,18 @@ the exit codes follow the `chroot` standard, see below:
 **_126_** if the **_contained command_** cannot be invoked
 **_126_** if the **_contained command_** cannot be invoked
 
 
     $ docker run busybox /etc; echo $?
     $ 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
       126
 
 
 **_127_** if the **_contained command_** cannot be found
 **_127_** if the **_contained command_** cannot be found
 
 
     $ docker run busybox foo; echo $?
     $ 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
       127
 
 
 **_Exit code_** of **_contained command_** otherwise
 **_Exit code_** of **_contained command_** otherwise
 
 
-    $ docker run busybox /bin/sh -c 'exit 3'
+    $ docker run busybox /bin/sh -c 'exit 3'; echo $?
     # 3
     # 3
 
 
 ## Clean up (--rm)
 ## Clean up (--rm)