Browse code

Fix the old exit status example

Signed-off-by: Kai Qiang Wu(Kennan) <wkqwu@cn.ibm.com>

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