Skip to content

Commit 3b1df0f

Browse files
committed
engine: update cli reference yamldocs for v28.0.1
Signed-off-by: Paweł Gronowski <[email protected]>
1 parent 3170b6a commit 3b1df0f

File tree

6 files changed

+42
-10
lines changed

6 files changed

+42
-10
lines changed

data/engine-cli/docker_container_restart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ examples: |-
7575
### Stop container with timeout (-t, --timeout) {#timeout}
7676
7777
The `--timeout` flag sets the number of seconds to wait for the container
78-
to stop after sending the pre-defined (see [`--signal`]{#signal)) system call signal.
78+
to stop after sending the pre-defined (see [`--signal`](#signal)) system call signal.
7979
If the container does not exit after the timeout elapses, it's forcibly killed
8080
with a `SIGKILL` signal.
8181

data/engine-cli/docker_container_run.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2318,6 +2318,26 @@ examples: |-
23182318
> $ docker run -it --ulimit as=1024 fedora /bin/bash
23192319
> ```
23202320
2321+
#### Supported options for `--ulimit`:
2322+
2323+
| Option | Description |
2324+
|:-------------|:----------------------------------------------------------|
2325+
| `core` | Maximum size of core files created (`RLIMIT_CORE`) |
2326+
| `cpu` | CPU time limit in seconds (`RLIMIT_CPU`) |
2327+
| `data` | Maximum data segment size (`RLIMIT_DATA`) |
2328+
| `fsize` | Maximum file size (`RLIMIT_FSIZE`) |
2329+
| `locks` | Maximum number of file locks (`RLIMIT_LOCKS`) |
2330+
| `memlock` | Maximum locked-in-memory address space (`RLIMIT_MEMLOCK`) |
2331+
| `msgqueue` | Maximum bytes in POSIX message queues (`RLIMIT_MSGQUEUE`) |
2332+
| `nice` | Maximum nice priority adjustment (`RLIMIT_NICE`) |
2333+
| `nofile` | Maximum number of open file descriptors (`RLIMIT_NOFILE`) |
2334+
| `nproc` | Maximum number of processes available (`RLIMIT_NPROC`) |
2335+
| `rss` | Maximum resident set size (`RLIMIT_RSS`) |
2336+
| `rtprio` | Maximum real-time scheduling priority (`RLIMIT_RTPRIO`) |
2337+
| `rttime` | Maximum real-time execution time (`RLIMIT_RTTIME`) |
2338+
| `sigpending` | Maximum number of pending signals (`RLIMIT_SIGPENDING`) |
2339+
| `stack` | Maximum stack size (`RLIMIT_STACK`) |
2340+
23212341
Docker sends the values to the appropriate OS `syscall` and doesn't perform any byte conversion.
23222342
Take this into account when setting the values.
23232343

data/engine-cli/docker_network_ls.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ options:
3939
value_type: bool
4040
default_value: "false"
4141
description: Do not truncate the output
42+
details_url: '#no-trunc'
4243
deprecated: false
4344
hidden: false
4445
experimental: false
@@ -79,6 +80,8 @@ examples: |-
7980
78b03ee04fc4 multi-host overlay swarm
8081
```
8182
83+
### List networks without truncating the ID column (--no-trun) {#no-trunc}
84+
8285
Use the `--no-trunc` option to display the full network id:
8386
8487
```console

data/engine-cli/docker_swarm_join-token.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ options:
2121
value_type: bool
2222
default_value: "false"
2323
description: Only display token
24+
details_url: '#quiet'
2425
deprecated: false
2526
hidden: false
2627
experimental: false
@@ -31,6 +32,7 @@ options:
3132
value_type: bool
3233
default_value: "false"
3334
description: Rotate join token
35+
details_url: '#rotate'
3436
deprecated: false
3537
hidden: false
3638
experimental: false
@@ -97,7 +99,7 @@ examples: |-
9799
SWMTKN-1-3pu6hszjas19xyp7ghgosyx9k8atbfcr8p2is99znpy26u2lkl-b30ljddcqhef9b9v4rs7mel7t
98100
```
99101
100-
### `--rotate`
102+
### `--rotate` {#rotate}
101103
102104
Because tokens allow new nodes to join the swarm, you should keep them secret.
103105
Be particularly careful with manager tokens since they allow new manager nodes
@@ -116,7 +118,7 @@ examples: |-
116118
using the old token. Rotation does not affect existing nodes in the swarm
117119
because the join token is only used for authorizing new nodes joining the swarm.
118120
119-
### `--quiet`
121+
### `--quiet` {#quiet}
120122
121123
Only print the token. Do not print a complete command for joining.
122124
deprecated: false

data/engine-cli/docker_swarm_join.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ options:
1111
- option: advertise-addr
1212
value_type: string
1313
description: 'Advertised address (format: `<ip|interface>[:port]`)'
14+
details_url: '#advertise-addr'
1415
deprecated: false
1516
hidden: false
1617
experimental: false
@@ -21,6 +22,7 @@ options:
2122
value_type: string
2223
default_value: active
2324
description: Availability of the node (`active`, `pause`, `drain`)
25+
details_url: '#availability'
2426
deprecated: false
2527
hidden: false
2628
experimental: false
@@ -31,6 +33,7 @@ options:
3133
value_type: string
3234
description: |
3335
Address or interface to use for data path traffic (format: `<ip|interface>`)
36+
details_url: '#data-path-addr'
3437
deprecated: false
3538
hidden: false
3639
min_api_version: "1.31"
@@ -42,6 +45,7 @@ options:
4245
value_type: node-addr
4346
default_value: 0.0.0.0:2377
4447
description: 'Listen address (format: `<ip|interface>[:port]`)'
48+
details_url: '#listen-addr'
4549
deprecated: false
4650
hidden: false
4751
experimental: false
@@ -51,6 +55,7 @@ options:
5155
- option: token
5256
value_type: string
5357
description: Token for entry into the swarm
58+
details_url: '#token'
5459
deprecated: false
5560
hidden: false
5661
experimental: false
@@ -102,7 +107,7 @@ examples: |-
102107
dvfxp4zseq4s0rih1selh0d20 * manager1 Ready Active Leader
103108
```
104109
105-
### `--listen-addr value`
110+
### `--listen-addr value` {#listen-addr}
106111
107112
If the node is a manager, it will listen for inbound swarm manager traffic on this
108113
address. The default is to listen on 0.0.0.0:2377. It is also possible to specify a
@@ -113,7 +118,7 @@ examples: |-
113118
114119
This flag is generally not necessary when joining an existing swarm.
115120
116-
### `--advertise-addr value`
121+
### `--advertise-addr value` {#advertise-addr}
117122
118123
This flag specifies the address that will be advertised to other members of the
119124
swarm for API access. If unspecified, Docker will check if the system has a
@@ -133,7 +138,7 @@ examples: |-
133138
ensure the node advertises its IP address and not the IP address of the load
134139
balancer.
135140
136-
### `--data-path-addr`
141+
### `--data-path-addr` {#data-path-addr}
137142
138143
This flag specifies the address that global scope network drivers will publish towards
139144
other nodes in order to reach the containers running on this node.
@@ -142,11 +147,11 @@ examples: |-
142147
If unspecified, Docker will use the same IP address or interface that is used for the
143148
advertise address.
144149
145-
### `--token string`
150+
### `--token string` {#token}
146151
147152
Secret value required for nodes to join the swarm
148153
149-
### `--availability`
154+
### `--availability` {#availability}
150155
151156
This flag specifies the availability of the node at the time the node joins a master.
152157
Possible availability values are `active`, `pause`, or `drain`.

data/engine-cli/docker_swarm_unlock-key.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ options:
2222
value_type: bool
2323
default_value: "false"
2424
description: Only display token
25+
details_url: '#quiet'
2526
deprecated: false
2627
hidden: false
2728
experimental: false
@@ -32,6 +33,7 @@ options:
3233
value_type: bool
3334
default_value: "false"
3435
description: Rotate unlock key
36+
details_url: '#rotate'
3537
deprecated: false
3638
hidden: false
3739
experimental: false
@@ -87,12 +89,12 @@ examples: |-
8789
SWMKEY-1-7c37Cc8654o6p38HnroywCi19pllOnGtbdZEgtKxZu8
8890
```
8991
90-
### `--rotate`
92+
### `--rotate` {#rotate}
9193
9294
This flag rotates the unlock key, replacing it with a new randomly-generated
9395
key. The old unlock key will no longer be accepted.
9496
95-
### `--quiet`
97+
### `--quiet` {#quiet}
9698
9799
Only print the unlock key, without instructions.
98100
deprecated: false

0 commit comments

Comments
 (0)