mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-01 02:35:04 +00:00
updating docs for EXPOSE option on run command; fixes #16634
Signed-off-by: Mike Brown <brownwm@us.ibm.com>
This commit is contained in:
+1
-1
@@ -185,7 +185,7 @@ A Dockerfile is similar to a Makefile.
|
||||
-- `EXPOSE <port> [<port>...]`
|
||||
The **EXPOSE** instruction informs Docker that the container listens on the
|
||||
specified network ports at runtime. Docker uses this information to
|
||||
interconnect containers using links, and to set up port redirection on the host
|
||||
interconnect containers using links and to set up port redirection on the host
|
||||
system.
|
||||
|
||||
**ENV**
|
||||
|
||||
+4
-1
@@ -223,7 +223,10 @@ ENTRYPOINT.
|
||||
Read in a line delimited file of environment variables
|
||||
|
||||
**--expose**=[]
|
||||
Expose a port, or a range of ports (e.g. --expose=3300-3310), from the container without publishing it to your host
|
||||
Expose a port, or a range of ports (e.g. --expose=3300-3310) informs Docker
|
||||
that the container listens on the specified network ports at runtime. Docker
|
||||
uses this information to interconnect containers using links and to set up port
|
||||
redirection on the host system.
|
||||
|
||||
**--group-add**=[]
|
||||
Add additional groups to run as
|
||||
|
||||
Reference in New Issue
Block a user