mirror of https://github.com/docker/cli.git
adding support for port ranges on --expose
Closes #1834 Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
This commit is contained in:
parent
01b86d0d32
commit
5b9405b388
|
@ -529,7 +529,7 @@ Creates a new container.
|
||||||
-e, --env=[] Set environment variables
|
-e, --env=[] Set environment variables
|
||||||
--entrypoint="" Overwrite the default ENTRYPOINT of the image
|
--entrypoint="" Overwrite the default ENTRYPOINT of the image
|
||||||
--env-file=[] Read in a line delimited file of environment variables
|
--env-file=[] Read in a line delimited file of environment variables
|
||||||
--expose=[] Expose a port from the container without publishing it to your host
|
--expose=[] Expose a port or a range of ports (e.g. --expose=3300-3310) from the container without publishing it to your host
|
||||||
-h, --hostname="" Container host name
|
-h, --hostname="" Container host name
|
||||||
-i, --interactive=false Keep STDIN open even if not attached
|
-i, --interactive=false Keep STDIN open even if not attached
|
||||||
--link=[] Add link to another container in the form of name:alias
|
--link=[] Add link to another container in the form of name:alias
|
||||||
|
@ -1232,7 +1232,7 @@ removed before the image is removed.
|
||||||
-e, --env=[] Set environment variables
|
-e, --env=[] Set environment variables
|
||||||
--entrypoint="" Overwrite the default ENTRYPOINT of the image
|
--entrypoint="" Overwrite the default ENTRYPOINT of the image
|
||||||
--env-file=[] Read in a line delimited file of environment variables
|
--env-file=[] Read in a line delimited file of environment variables
|
||||||
--expose=[] Expose a port from the container without publishing it to your host
|
--expose=[] Expose a port or a range of ports (e.g. --expose=3300-3310) from the container without publishing it to your host
|
||||||
-h, --hostname="" Container host name
|
-h, --hostname="" Container host name
|
||||||
-i, --interactive=false Keep STDIN open even if not attached
|
-i, --interactive=false Keep STDIN open even if not attached
|
||||||
--link=[] Add link to another container in the form of name:alias
|
--link=[] Add link to another container in the form of name:alias
|
||||||
|
|
|
@ -413,7 +413,7 @@ the `EXPOSE` instruction to give a hint to the operator about what
|
||||||
incoming ports might provide services. The following options work with
|
incoming ports might provide services. The following options work with
|
||||||
or override the Dockerfile's exposed defaults:
|
or override the Dockerfile's exposed defaults:
|
||||||
|
|
||||||
--expose=[]: Expose a port from the container
|
--expose=[]: Expose a port or a range of ports from the container
|
||||||
without publishing it to your host
|
without publishing it to your host
|
||||||
-P=false : Publish all exposed ports to the host interfaces
|
-P=false : Publish all exposed ports to the host interfaces
|
||||||
-p=[] : Publish a container᾿s port to the host (format:
|
-p=[] : Publish a container᾿s port to the host (format:
|
||||||
|
@ -422,7 +422,7 @@ or override the Dockerfile's exposed defaults:
|
||||||
(use 'docker port' to see the actual mapping)
|
(use 'docker port' to see the actual mapping)
|
||||||
--link="" : Add link to another container (name:alias)
|
--link="" : Add link to another container (name:alias)
|
||||||
|
|
||||||
As mentioned previously, `EXPOSE` (and `--expose`) make a port available
|
As mentioned previously, `EXPOSE` (and `--expose`) makes ports available
|
||||||
**in** a container for incoming connections. The port number on the
|
**in** a container for incoming connections. The port number on the
|
||||||
inside of the container (where the service listens) does not need to be
|
inside of the container (where the service listens) does not need to be
|
||||||
the same number as the port exposed on the outside of the container
|
the same number as the port exposed on the outside of the container
|
||||||
|
|
Loading…
Reference in New Issue