mirror of
https://github.com/containers/podman.git
synced 2025-05-17 15:18:43 +08:00
docs: fix missleading run/create --expose description
The --expose option doesn't actually affect port forwarding or anything like that. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -2,7 +2,11 @@
|
||||
####> podman create, run
|
||||
####> If file is edited, make sure the changes
|
||||
####> are applicable to all of those.
|
||||
#### **--expose**=*port*
|
||||
#### **--expose**=*port[/protocol]*
|
||||
|
||||
Expose a port, or a range of ports (e.g. **--expose=3300-3310**) to set up port redirection
|
||||
on the host system.
|
||||
Expose a port or a range of ports (e.g. **--expose=3300-3310**).
|
||||
The protocol can be `tcp`, `udp` or `sctp` and if not given `tcp` is assumed.
|
||||
This option matches the EXPOSE instruction for image builds and has no effect on
|
||||
the actual networking rules unless **-P/--publish-all** is used to forward to all
|
||||
exposed ports from random host ports. To forward specific ports from the host
|
||||
into the container use the **-p/--publish** option instead.
|
||||
|
Reference in New Issue
Block a user