Merge pull request #35102 from ripcurld0/doc_31926
Elaborate more about port allocation in docs
This commit is contained in:
commit
a6f09a7509
8 changed files with 58 additions and 8 deletions
|
@ -722,7 +722,15 @@ definitions:
|
|||
description: "Gives the container full access to the host."
|
||||
PublishAllPorts:
|
||||
type: "boolean"
|
||||
description: "Allocates a random host port for all of a container's exposed ports."
|
||||
description: |
|
||||
Allocates an ephemeral host port for all of a container's
|
||||
exposed ports.
|
||||
|
||||
Ports are de-allocated when the container stops and allocated when the container starts.
|
||||
The allocated port might be changed when restarting the container.
|
||||
|
||||
The port is selected from the ephemeral port range that depends on the kernel.
|
||||
For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.
|
||||
ReadonlyRootfs:
|
||||
type: "boolean"
|
||||
description: "Mount the container's root filesystem as read only."
|
||||
|
|
|
@ -264,8 +264,14 @@ Create a container
|
|||
should map to. A JSON object in the form
|
||||
`{ <port>/<protocol>: [{ "HostPort": "<port>" }] }`
|
||||
Take note that `port` is specified as a string and not an integer value.
|
||||
- **PublishAllPorts** - Allocates a random host port for all of a container's
|
||||
- **PublishAllPorts** - Allocates an ephemeral host port for all of a container's
|
||||
exposed ports. Specified as a boolean value.
|
||||
|
||||
Ports are de-allocated when the container stops and allocated when the container starts.
|
||||
The allocated port might be changed when restarting the container.
|
||||
|
||||
The port is selected from the ephemeral port range that depends on the kernel.
|
||||
For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.
|
||||
- **Privileged** - Gives the container full access to the host. Specified as
|
||||
a boolean value.
|
||||
- **ReadonlyRootfs** - Mount the container's root filesystem as read only.
|
||||
|
|
|
@ -274,8 +274,14 @@ Create a container
|
|||
should map to. A JSON object in the form
|
||||
`{ <port>/<protocol>: [{ "HostPort": "<port>" }] }`
|
||||
Take note that `port` is specified as a string and not an integer value.
|
||||
- **PublishAllPorts** - Allocates a random host port for all of a container's
|
||||
- **PublishAllPorts** - Allocates an ephemeral host port for all of a container's
|
||||
exposed ports. Specified as a boolean value.
|
||||
|
||||
Ports are de-allocated when the container stops and allocated when the container starts.
|
||||
The allocated port might be changed when restarting the container.
|
||||
|
||||
The port is selected from the ephemeral port range that depends on the kernel.
|
||||
For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.
|
||||
- **Privileged** - Gives the container full access to the host. Specified as
|
||||
a boolean value.
|
||||
- **ReadonlyRootfs** - Mount the container's root filesystem as read only.
|
||||
|
|
|
@ -277,8 +277,14 @@ Create a container
|
|||
should map to. A JSON object in the form
|
||||
`{ <port>/<protocol>: [{ "HostPort": "<port>" }] }`
|
||||
Take note that `port` is specified as a string and not an integer value.
|
||||
- **PublishAllPorts** - Allocates a random host port for all of a container's
|
||||
- **PublishAllPorts** - Allocates an ephemeral host port for all of a container's
|
||||
exposed ports. Specified as a boolean value.
|
||||
|
||||
Ports are de-allocated when the container stops and allocated when the container starts.
|
||||
The allocated port might be changed when restarting the container.
|
||||
|
||||
The port is selected from the ephemeral port range that depends on the kernel.
|
||||
For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.
|
||||
- **Privileged** - Gives the container full access to the host. Specified as
|
||||
a boolean value.
|
||||
- **ReadonlyRootfs** - Mount the container's root filesystem as read only.
|
||||
|
|
|
@ -294,8 +294,14 @@ Create a container
|
|||
should map to. A JSON object in the form
|
||||
`{ <port>/<protocol>: [{ "HostPort": "<port>" }] }`
|
||||
Take note that `port` is specified as a string and not an integer value.
|
||||
- **PublishAllPorts** - Allocates a random host port for all of a container's
|
||||
- **PublishAllPorts** - Allocates an ephemeral host port for all of a container's
|
||||
exposed ports. Specified as a boolean value.
|
||||
|
||||
Ports are de-allocated when the container stops and allocated when the container starts.
|
||||
The allocated port might be changed when restarting the container.
|
||||
|
||||
The port is selected from the ephemeral port range that depends on the kernel.
|
||||
For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.
|
||||
- **Privileged** - Gives the container full access to the host. Specified as
|
||||
a boolean value.
|
||||
- **ReadonlyRootfs** - Mount the container's root filesystem as read only.
|
||||
|
|
|
@ -408,8 +408,14 @@ Create a container
|
|||
should map to. A JSON object in the form
|
||||
`{ <port>/<protocol>: [{ "HostPort": "<port>" }] }`
|
||||
Take note that `port` is specified as a string and not an integer value.
|
||||
- **PublishAllPorts** - Allocates a random host port for all of a container's
|
||||
- **PublishAllPorts** - Allocates an ephemeral host port for all of a container's
|
||||
exposed ports. Specified as a boolean value.
|
||||
|
||||
Ports are de-allocated when the container stops and allocated when the container starts.
|
||||
The allocated port might be changed when restarting the container.
|
||||
|
||||
The port is selected from the ephemeral port range that depends on the kernel.
|
||||
For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.
|
||||
- **Privileged** - Gives the container full access to the host. Specified as
|
||||
a boolean value.
|
||||
- **ReadonlyRootfs** - Mount the container's root filesystem as read only.
|
||||
|
|
|
@ -432,8 +432,14 @@ Create a container
|
|||
should map to. A JSON object in the form
|
||||
`{ <port>/<protocol>: [{ "HostPort": "<port>" }] }`
|
||||
Take note that `port` is specified as a string and not an integer value.
|
||||
- **PublishAllPorts** - Allocates a random host port for all of a container's
|
||||
- **PublishAllPorts** - Allocates an ephemeral host port for all of a container's
|
||||
exposed ports. Specified as a boolean value.
|
||||
|
||||
Ports are de-allocated when the container stops and allocated when the container starts.
|
||||
The allocated port might be changed when restarting the container.
|
||||
|
||||
The port is selected from the ephemeral port range that depends on the kernel.
|
||||
For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.
|
||||
- **Privileged** - Gives the container full access to the host. Specified as
|
||||
a boolean value.
|
||||
- **ReadonlyRootfs** - Mount the container's root filesystem as read only.
|
||||
|
|
|
@ -469,8 +469,14 @@ Create a container
|
|||
should map to. A JSON object in the form
|
||||
`{ <port>/<protocol>: [{ "HostPort": "<port>" }] }`
|
||||
Take note that `port` is specified as a string and not an integer value.
|
||||
- **PublishAllPorts** - Allocates a random host port for all of a container's
|
||||
- **PublishAllPorts** - Allocates an ephemeral host port for all of a container's
|
||||
exposed ports. Specified as a boolean value.
|
||||
|
||||
Ports are de-allocated when the container stops and allocated when the container starts.
|
||||
The allocated port might be changed when restarting the container.
|
||||
|
||||
The port is selected from the ephemeral port range that depends on the kernel.
|
||||
For example, on Linux the range is defined by `/proc/sys/net/ipv4/ip_local_port_range`.
|
||||
- **Privileged** - Gives the container full access to the host. Specified as
|
||||
a boolean value.
|
||||
- **ReadonlyRootfs** - Mount the container's root filesystem as read only.
|
||||
|
|
Loading…
Add table
Reference in a new issue