Browse code

add a little bit mentioning commandline option combinations

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@fosiki.com> (github: SvenDowideit)

Sven Dowideit authored on 2014/02/28 07:07:46
Showing 2 changed files
... ...
@@ -20,8 +20,12 @@ To list available commands, either run ``docker`` with no parameters or execute
20 20
 
21 21
 .. _cli_options:
22 22
 
23
-Types of Options
23
+Options
24
+-------
25
+
26
+Single character commandline options can be combined, so rather than typing
27
+``docker run -t -i --name test busybox sh``, you can write
28
+``docker run -ti --name test busybox sh``.
24 29
 
25 30
 Boolean
26 31
 ~~~~~~~
... ...
@@ -51,7 +51,7 @@ Running an interactive shell
51 51
   # To detach the tty without exiting the shell,
52 52
   # use the escape sequence Ctrl-p + Ctrl-q
53 53
   # note: This will continue to exist in a stopped state once exited (see "docker ps -a")
54
-  sudo docker run -i -t ubuntu /bin/bash
54
+  sudo docker run -it ubuntu /bin/bash
55 55
 
56 56
 .. _bind_docker:
57 57