mirror of https://github.com/docker/cli.git
Merge pull request #848 from mistyhacks/fix-publish-table
Fix the network option table
This commit is contained in:
commit
bb9e5ab767
|
@ -766,18 +766,14 @@ The options you can specify are:
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>published and target port </td>
|
<td>published and target port</td>
|
||||||
<td><tt></tt></td>
|
|
||||||
<td><tt></tt></td>
|
|
||||||
<td></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>protocol</td>
|
|
||||||
<td><tt>--publish 8080:80</tt></td>
|
<td><tt>--publish 8080:80</tt></td>
|
||||||
<td><tt>--publish published=8080,target=80</tt></td>
|
<td><tt>--publish published=8080,target=80</tt></td>
|
||||||
<td><p>
|
<td><p>
|
||||||
The port to publish the service to on the routing mesh or directly on
|
The target port within the container and the port to map it to on the
|
||||||
the node, and the target port on the container.
|
nodes, using the routing mesh (<tt>ingress</tt>) or host-level networking.
|
||||||
|
More options are available, later in this table. The key-value syntax is
|
||||||
|
preferred, because it is somewhat self-documenting.
|
||||||
</p></td>
|
</p></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -785,8 +781,8 @@ The options you can specify are:
|
||||||
<td>Not possible to set using short syntax.</td>
|
<td>Not possible to set using short syntax.</td>
|
||||||
<td><tt>--publish published=8080,target=80,mode=host</tt></td>
|
<td><tt>--publish published=8080,target=80,mode=host</tt></td>
|
||||||
<td><p>
|
<td><p>
|
||||||
The mode to use for binding the port, either `ingress` or `host`. Defaults
|
The mode to use for binding the port, either <tt>ingress</tt> or <tt>host</tt>.
|
||||||
to `ingress` to use the routing mesh.
|
Defaults to <tt>ingress</tt> to use the routing mesh.
|
||||||
</p></td>
|
</p></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -794,13 +790,14 @@ The options you can specify are:
|
||||||
<td><tt>--publish 8080:80/tcp</tt></td>
|
<td><tt>--publish 8080:80/tcp</tt></td>
|
||||||
<td><tt>--publish published=8080,target=80,protocol=tcp</tt></td>
|
<td><tt>--publish published=8080,target=80,protocol=tcp</tt></td>
|
||||||
<td><p>
|
<td><p>
|
||||||
The protocol to use, either `tcp` or `udp`. Defaults to `tcp`. To bind a
|
The protocol to use, either <tt>tcp</tt> or <tt>udp</tt> Defaults to
|
||||||
port for both protocols, specify the `-p` or `--publish` flag twice.
|
<tt>tcp</tt>. To bind a port for both protocols, specify the <tt>-p</tt> or
|
||||||
|
<tt>--publish</tt> flag twice.
|
||||||
</p></td>
|
</p></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
When you publish a service port using `ingres` mode, the swarm routing mesh
|
When you publish a service port using `ingress` mode, the swarm routing mesh
|
||||||
makes the service accessible at the published port on every node regardless if
|
makes the service accessible at the published port on every node regardless if
|
||||||
there is a task for the service running on the node. If you use `host` mode,
|
there is a task for the service running on the node. If you use `host` mode,
|
||||||
the port is only bound on nodes where the service is running, and a given port
|
the port is only bound on nodes where the service is running, and a given port
|
||||||
|
@ -904,9 +901,9 @@ x3ti0erg11rjpg64m75kej2mz-hosttempl
|
||||||
|
|
||||||
### Specify isolation mode (Windows)
|
### Specify isolation mode (Windows)
|
||||||
|
|
||||||
By default, tasks scheduled on Windows nodes are run using the default isolation mode
|
By default, tasks scheduled on Windows nodes are run using the default isolation mode
|
||||||
configured for this particular node. To force a specific isolation mode, you can use
|
configured for this particular node. To force a specific isolation mode, you can use
|
||||||
the `--isolation` flag:
|
the `--isolation` flag:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ docker service create --name myservice --isolation=process microsoft/nanoserver
|
$ docker service create --name myservice --isolation=process microsoft/nanoserver
|
||||||
|
|
Loading…
Reference in New Issue