mirror of https://github.com/docker/docs.git
Clean up quoting, wraps, and build error on code-block.
This commit is contained in:
parent
ea0ed9a915
commit
4bea68dfa6
|
@ -938,8 +938,10 @@ containers will not be deleted.
|
||||||
-name="": Assign the specified name to the container. If no name is specific docker will generate a random name
|
-name="": Assign the specified name to the container. If no name is specific docker will generate a random name
|
||||||
-P=false: Publish all exposed ports to the host interfaces
|
-P=false: Publish all exposed ports to the host interfaces
|
||||||
|
|
||||||
``docker run`` ``creates`` a writeable container layer over the specified image, and then
|
``'docker run'`` first ``'creates'`` a writeable container layer over
|
||||||
``start``s it using the specified command (ie. is equivalent to the API ``/containers/create`` then ``/containers/(id)/start``).
|
the specified image, and then ``'starts'`` it using the specified
|
||||||
|
command. That is, ``'docker run'`` is equivalent to the API
|
||||||
|
``/containers/create`` then ``/containers/(id)/start``.
|
||||||
|
|
||||||
Known Issues (run -volumes-from)
|
Known Issues (run -volumes-from)
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
|
@ -161,11 +161,12 @@ variable using the ``-e`` command line option.
|
||||||
local ``1234`` port to the remote IP and port - in this case ``192.168.1.52:6379``.
|
local ``1234`` port to the remote IP and port - in this case ``192.168.1.52:6379``.
|
||||||
|
|
||||||
|
|
||||||
.. code-block:: Dockerfile
|
::
|
||||||
|
|
||||||
#
|
#
|
||||||
#
|
#
|
||||||
# first you need to build the docker-ut image using ./contrib/mkimage-unittest.sh
|
# first you need to build the docker-ut image
|
||||||
|
# using ./contrib/mkimage-unittest.sh
|
||||||
# then
|
# then
|
||||||
# docker build -t SvenDowideit/ambassador .
|
# docker build -t SvenDowideit/ambassador .
|
||||||
# docker tag SvenDowideit/ambassador ambassador
|
# docker tag SvenDowideit/ambassador ambassador
|
||||||
|
|
Loading…
Reference in New Issue