Browse code

docs fix

Docker-DCO-1.1-Signed-off-by: Tibor Vass <teabee89@gmail.com> (github: tiborvass)

Tibor Vass authored on 2014/07/19 09:38:27
Showing 2 changed files
... ...
@@ -378,17 +378,17 @@ Creates a new container.
378 378
     Usage: docker create [OPTIONS] IMAGE[:TAG] [COMMAND] [ARG...]
379 379
 
380 380
 
381
-    -a, --attach=[]            Attach to stdin, stdout or stderr.
381
+    -a, --attach=[]            Attach to STDIN, STDOUT, STDERR.
382 382
     -c, --cpu-shares=0         CPU shares (relative weight)
383 383
     --cidfile=""               Write the container ID to the file
384
-    --dns=[]                   Set custom dns servers
385
-    --dns-search=[]            Set custom dns search domains
384
+    --dns=[]                   Set custom DNS servers
385
+    --dns-search=[]            Set custom DNS search domains
386 386
     -e, --env=[]               Set environment variables
387 387
     --entrypoint=""            Overwrite the default entrypoint of the image
388
-    --env-file=[]              Read in a line delimited file of ENV variables
388
+    --env-file=[]              Read in a line delimited file of environment variables
389 389
     --expose=[]                Expose a port from the container without publishing it to your host
390 390
     -h, --hostname=""          Container host name
391
-    -i, --interactive=false    Keep stdin open even if not attached
391
+    -i, --interactive=false    Keep `STDIN` open even if not attached
392 392
     --link=[]                  Add link to another container (name:alias)
393 393
     --lxc-conf=[]              (lxc exec-driver only) Add custom lxc options --lxc-conf="lxc.cgroup.cpuset.cpus = 0,1"
394 394
     -m, --memory=""            Memory limit (format: <number><optional unit>, where unit = b, k, m or g)
... ...
@@ -397,28 +397,28 @@ Creates a new container.
397 397
                                  'bridge': creates a new network stack for the container on the docker bridge
398 398
                                  'none': no networking for this container
399 399
                                  'container:<name|id>': reuses another container network stack
400
-                                 'host': use the host network stack inside the contaner
400
+                                 'host': use the host network stack inside the container
401 401
     -p, --publish=[]           Publish a container's port to the host
402 402
                                  format: ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort
403 403
                                  (use 'docker port' to see the actual mapping)
404 404
     -P, --publish-all=false    Publish all exposed ports to the host interfaces
405 405
     --privileged=false         Give extended privileges to this container
406
-    -t, --tty=false            Allocate a pseudo-tty
406
+    -t, --tty=false            Allocate a pseudo-TTY
407 407
     -u, --user=""              Username or UID
408 408
     -v, --volume=[]            Bind mount a volume (e.g. from the host: -v /host:/container, from docker: -v /container)
409 409
     --volumes-from=[]          Mount volumes from the specified container(s)
410 410
     -w, --workdir=""           Working directory inside the container
411 411
 
412 412
 
413
-The `docker create` command `creates` a writeable container layer over
414
-the specified image, and prepares it for running the specified
415
-command. The container id is then printed to stdout. This is similar
416
-to what `docker run -d <cli_run>`, does except the container is never
417
-started. You can then use the `docker start <cli_start>` command to
418
-start the container at any point.
413
+The `docker create` command creates a writeable container layer over
414
+the specified image and prepares it for running the specified command.
415
+The container ID is then printed to `STDOUT`.
416
+This is similar to `docker run -d` except the container is never started.
417
+You can then use the `docker start <container_id>` command to start the
418
+container at any point.
419 419
 
420 420
 This is useful when you want to set up a container configuration ahead
421
-of time, so that it is ready to start when you need it.
421
+of time so that it is ready to start when you need it.
422 422
 
423 423
 ### Example:
424 424
 
... ...
@@ -57,7 +57,7 @@ type HostConfig struct {
57 57
 	RestartPolicy   RestartPolicy
58 58
 }
59 59
 
60
-// This is used by the create command when you want to both set the
60
+// This is used by the create command when you want to set both the
61 61
 // Config and the HostConfig in the same call
62 62
 type ConfigAndHostConfig struct {
63 63
 	Config