change the documentation only - It looks like we have a number of cmdline params to completely update from the code version

Docker-DCO-1.1-Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au> (github: SvenDowideit)
This commit is contained in:
Sven Dowideit 2014-01-22 14:12:01 +10:00 коммит произвёл Sven Dowideit
Родитель 3cb5bc5ae5
Коммит 0f5ad430c4
1 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -1015,7 +1015,7 @@ image is removed.
-t, --tty=false: Allocate a pseudo-tty
-u, --user="": Username or UID
--dns=[]: Set custom dns servers for the container
-v, --volume=[]: Create a bind mount with: [host-dir]:[container-dir]:[rw|ro]. If "container-dir" is missing, then docker creates a new volume.
-v, --volume=[]: Create a bind mount to a directory or file with: [host-path]:[container-path]:[rw|ro]. If a directory "container-path" is missing, then docker creates a new volume.
--volumes-from="": Mount all volumes from the given container(s)
--entrypoint="": Overwrite the default entrypoint set by the image
-w, --workdir="": Working directory inside the container
@ -1100,13 +1100,21 @@ using the container, but inside the current working directory.
.. code-block:: bash
$ sudo docker run -v /dont/exist:/foo -w /foo -i -t ubuntu bash
$ sudo docker run -v /doesnt/exist:/foo -w /foo -i -t ubuntu bash
When the host directory of a bind-mounted volume doesn't exist, Docker
will automatically create this directory on the host for you. In the
example above, Docker will create the ``/dont/exist`` folder before
example above, Docker will create the ``/doesnt/exist`` folder before
starting your container.
.. code-block:: bash
$ sudo docker run -t -i -v /var/run/docker.sock:/var/run/docker.sock -v ./static-docker:/usr/bin/docker busybox sh
By bind-mounting the docker unix socket and statically linked docker binary
(such as that provided by https://get.docker.io), you give the container
the full access to create and manipulate the host's docker daemon.
.. code-block:: bash
$ sudo docker run -p 127.0.0.1:80:8080 ubuntu bash