Browse code

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) authored on 2016/04/21 12:24:10
Showing 1 changed files
... ...
@@ -563,20 +563,18 @@ the exit codes follow the `chroot` standard, see below:
563 563
 **_126_** if the **_contained command_** cannot be invoked
564 564
 
565 565
     $ docker run busybox /etc; echo $?
566
-    # exec: "/etc": permission denied
567
-      docker: Error response from daemon: Contained command could not be invoked
566
+    # docker: Error response from daemon: Container command '/etc' could not be invoked.
568 567
       126
569 568
 
570 569
 **_127_** if the **_contained command_** cannot be found
571 570
 
572 571
     $ docker run busybox foo; echo $?
573
-    # exec: "foo": executable file not found in $PATH
574
-      docker: Error response from daemon: Contained command not found or does not exist
572
+    # docker: Error response from daemon: Container command 'foo' not found or does not exist.
575 573
       127
576 574
 
577 575
 **_Exit code_** of **_contained command_** otherwise
578 576
 
579
-    $ docker run busybox /bin/sh -c 'exit 3'
577
+    $ docker run busybox /bin/sh -c 'exit 3'; echo $?
580 578
     # 3
581 579
 
582 580
 ## Clean up (--rm)