mirror of https://github.com/docker/docs.git
cli: generate docker/cli v27.4.0
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
parent
f9b0855d87
commit
90eabe3ae7
|
@ -62,7 +62,7 @@ examples: |-
|
|||
* label (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) - only remove containers with (or without, in case `label!=...` is used) the specified labels.
|
||||
|
||||
The `until` filter can be Unix timestamps, date formatted
|
||||
timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed
|
||||
timestamps, or Go duration strings supported by [ParseDuration](https://pkg.go.dev/time#ParseDuration) (e.g. `10m`, `1h30m`) computed
|
||||
relative to the daemon machine’s time. Supported formats for date
|
||||
formatted time stamps include RFC3339Nano, RFC3339, `2006-01-02T15:04:05`,
|
||||
`2006-01-02T15:04:05.999999999`, `2006-01-02T07:00`, and `2006-01-02`. The local
|
||||
|
|
|
@ -96,7 +96,7 @@ examples: |-
|
|||
* label (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) - only remove images with (or without, in case `label!=...` is used) the specified labels.
|
||||
|
||||
The `until` filter can be Unix timestamps, date formatted
|
||||
timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed
|
||||
timestamps, or Go duration strings supported by [ParseDuration](https://pkg.go.dev/time#ParseDuration) (e.g. `10m`, `1h30m`) computed
|
||||
relative to the daemon machine’s time. Supported formats for date
|
||||
formatted time stamps include RFC3339Nano, RFC3339, `2006-01-02T15:04:05`,
|
||||
`2006-01-02T15:04:05.999999999`, `2006-01-02T07:00`, and `2006-01-02`. The local
|
||||
|
|
|
@ -61,7 +61,7 @@ examples: |-
|
|||
* label (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) - only remove networks with (or without, in case `label!=...` is used) the specified labels.
|
||||
|
||||
The `until` filter can be Unix timestamps, date formatted
|
||||
timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed
|
||||
timestamps, or Go duration strings supported by [ParseDuration](https://pkg.go.dev/time#ParseDuration) (e.g. `10m`, `1h30m`) computed
|
||||
relative to the daemon machine’s time. Supported formats for date
|
||||
formatted time stamps include RFC3339Nano, RFC3339, `2006-01-02T15:04:05`,
|
||||
`2006-01-02T15:04:05.999999999`, `2006-01-02T07:00`, and `2006-01-02`. The local
|
||||
|
|
|
@ -82,11 +82,11 @@ examples: |-
|
|||
$ docker node ps swarm-manager1
|
||||
|
||||
NAME IMAGE NODE DESIRED STATE CURRENT STATE
|
||||
redis.1.7q92v0nr1hcgts2amcjyqg3pq redis:3.0.6 swarm-manager1 Running Running 5 hours
|
||||
redis.6.b465edgho06e318egmgjbqo4o redis:3.0.6 swarm-manager1 Running Running 29 seconds
|
||||
redis.7.bg8c07zzg87di2mufeq51a2qp redis:3.0.6 swarm-manager1 Running Running 5 seconds
|
||||
redis.9.dkkual96p4bb3s6b10r7coxxt redis:3.0.6 swarm-manager1 Running Running 5 seconds
|
||||
redis.10.0tgctg8h8cech4w0k0gwrmr23 redis:3.0.6 swarm-manager1 Running Running 5 seconds
|
||||
redis.1.7q92v0nr1hcgts2amcjyqg3pq redis:7.4.1 swarm-manager1 Running Running 5 hours
|
||||
redis.6.b465edgho06e318egmgjbqo4o redis:7.4.1 swarm-manager1 Running Running 29 seconds
|
||||
redis.7.bg8c07zzg87di2mufeq51a2qp redis:7.4.1 swarm-manager1 Running Running 5 seconds
|
||||
redis.9.dkkual96p4bb3s6b10r7coxxt redis:7.4.1 swarm-manager1 Running Running 5 seconds
|
||||
redis.10.0tgctg8h8cech4w0k0gwrmr23 redis:7.4.1 swarm-manager1 Running Running 5 seconds
|
||||
```
|
||||
|
||||
### Filtering (--filter) {#filter}
|
||||
|
@ -112,11 +112,11 @@ examples: |-
|
|||
$ docker node ps -f name=redis swarm-manager1
|
||||
|
||||
NAME IMAGE NODE DESIRED STATE CURRENT STATE
|
||||
redis.1.7q92v0nr1hcgts2amcjyqg3pq redis:3.0.6 swarm-manager1 Running Running 5 hours
|
||||
redis.6.b465edgho06e318egmgjbqo4o redis:3.0.6 swarm-manager1 Running Running 29 seconds
|
||||
redis.7.bg8c07zzg87di2mufeq51a2qp redis:3.0.6 swarm-manager1 Running Running 5 seconds
|
||||
redis.9.dkkual96p4bb3s6b10r7coxxt redis:3.0.6 swarm-manager1 Running Running 5 seconds
|
||||
redis.10.0tgctg8h8cech4w0k0gwrmr23 redis:3.0.6 swarm-manager1 Running Running 5 seconds
|
||||
redis.1.7q92v0nr1hcgts2amcjyqg3pq redis:7.4.1 swarm-manager1 Running Running 5 hours
|
||||
redis.6.b465edgho06e318egmgjbqo4o redis:7.4.1 swarm-manager1 Running Running 29 seconds
|
||||
redis.7.bg8c07zzg87di2mufeq51a2qp redis:7.4.1 swarm-manager1 Running Running 5 seconds
|
||||
redis.9.dkkual96p4bb3s6b10r7coxxt redis:7.4.1 swarm-manager1 Running Running 5 seconds
|
||||
redis.10.0tgctg8h8cech4w0k0gwrmr23 redis:7.4.1 swarm-manager1 Running Running 5 seconds
|
||||
```
|
||||
|
||||
#### id
|
||||
|
@ -127,7 +127,7 @@ examples: |-
|
|||
$ docker node ps -f id=bg8c07zzg87di2mufeq51a2qp swarm-manager1
|
||||
|
||||
NAME IMAGE NODE DESIRED STATE CURRENT STATE
|
||||
redis.7.bg8c07zzg87di2mufeq51a2qp redis:3.0.6 swarm-manager1 Running Running 5 seconds
|
||||
redis.7.bg8c07zzg87di2mufeq51a2qp redis:7.4.1 swarm-manager1 Running Running 5 seconds
|
||||
```
|
||||
|
||||
#### label
|
||||
|
@ -141,8 +141,8 @@ examples: |-
|
|||
$ docker node ps -f "label=usage"
|
||||
|
||||
NAME IMAGE NODE DESIRED STATE CURRENT STATE
|
||||
redis.6.b465edgho06e318egmgjbqo4o redis:3.0.6 swarm-manager1 Running Running 10 minutes
|
||||
redis.7.bg8c07zzg87di2mufeq51a2qp redis:3.0.6 swarm-manager1 Running Running 9 minutes
|
||||
redis.6.b465edgho06e318egmgjbqo4o redis:7.4.1 swarm-manager1 Running Running 10 minutes
|
||||
redis.7.bg8c07zzg87di2mufeq51a2qp redis:7.4.1 swarm-manager1 Running Running 9 minutes
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -787,19 +787,19 @@ examples: |-
|
|||
### Create a service
|
||||
|
||||
```console
|
||||
$ docker service create --name redis redis:3.0.6
|
||||
$ docker service create --name redis redis:7.4.1
|
||||
|
||||
dmu1ept4cxcfe8k8lhtux3ro3
|
||||
|
||||
$ docker service create --mode global --name redis2 redis:3.0.6
|
||||
$ docker service create --mode global --name redis2 redis:7.4.1
|
||||
|
||||
a8q9dasaafudfs8q8w32udass
|
||||
|
||||
$ docker service ls
|
||||
|
||||
ID NAME MODE REPLICAS IMAGE
|
||||
dmu1ept4cxcf redis replicated 1/1 redis:3.0.6
|
||||
a8q9dasaafud redis2 global 1/1 redis:3.0.6
|
||||
dmu1ept4cxcf redis replicated 1/1 redis:7.4.1
|
||||
a8q9dasaafud redis2 global 1/1 redis:7.4.1
|
||||
```
|
||||
|
||||
#### Create a service using an image on a private registry (--with-registry-auth) {#with-registry-auth}
|
||||
|
@ -828,7 +828,7 @@ examples: |-
|
|||
service. The following command creates a `redis` service with `5` replica tasks:
|
||||
|
||||
```console
|
||||
$ docker service create --name redis --replicas=5 redis:3.0.6
|
||||
$ docker service create --name redis --replicas=5 redis:7.4.1
|
||||
|
||||
4cdgfyky7ozwh3htjfw0d12qv
|
||||
```
|
||||
|
@ -845,7 +845,7 @@ examples: |-
|
|||
$ docker service ls
|
||||
|
||||
ID NAME MODE REPLICAS IMAGE
|
||||
4cdgfyky7ozw redis replicated 3/5 redis:3.0.7
|
||||
4cdgfyky7ozw redis replicated 3/5 redis:7.4.1
|
||||
```
|
||||
|
||||
Once all the tasks are created and `RUNNING`, the actual number of tasks is
|
||||
|
@ -855,7 +855,7 @@ examples: |-
|
|||
$ docker service ls
|
||||
|
||||
ID NAME MODE REPLICAS IMAGE
|
||||
4cdgfyky7ozw redis replicated 5/5 redis:3.0.7
|
||||
4cdgfyky7ozw redis replicated 5/5 redis:7.4.1
|
||||
```
|
||||
|
||||
### Create a service with secrets (--secret) {#secret}
|
||||
|
@ -866,7 +866,7 @@ examples: |-
|
|||
Create a service specifying a secret:
|
||||
|
||||
```console
|
||||
$ docker service create --name redis --secret secret.json redis:3.0.6
|
||||
$ docker service create --name redis --secret secret.json redis:7.4.1
|
||||
|
||||
4cdgfyky7ozwh3htjfw0d12qv
|
||||
```
|
||||
|
@ -877,7 +877,7 @@ examples: |-
|
|||
$ docker service create --name redis \
|
||||
--secret source=ssh-key,target=ssh \
|
||||
--secret source=app-key,target=app,uid=1000,gid=1001,mode=0400 \
|
||||
redis:3.0.6
|
||||
redis:7.4.1
|
||||
|
||||
4cdgfyky7ozwh3htjfw0d12qv
|
||||
```
|
||||
|
@ -903,14 +903,14 @@ examples: |-
|
|||
as `0755`.
|
||||
|
||||
```console
|
||||
$ docker service create --name=redis --config redis-conf redis:3.0.6
|
||||
$ docker service create --name=redis --config redis-conf redis:7.4.1
|
||||
```
|
||||
|
||||
Create a service with a config and specify the target location and file mode:
|
||||
|
||||
```console
|
||||
$ docker service create --name redis \
|
||||
--config source=redis-conf,target=/etc/redis/redis.conf,mode=0400 redis:3.0.6
|
||||
--config source=redis-conf,target=/etc/redis/redis.conf,mode=0400 redis:7.4.1
|
||||
```
|
||||
|
||||
To grant a service access to multiple configs, use multiple `--config` flags.
|
||||
|
@ -927,7 +927,7 @@ examples: |-
|
|||
--name redis \
|
||||
--update-delay 10s \
|
||||
--update-parallelism 2 \
|
||||
redis:3.0.6
|
||||
redis:7.4.1
|
||||
```
|
||||
|
||||
When you run a [service update](/reference/cli/docker/service/update/), the scheduler updates a
|
||||
|
@ -944,7 +944,7 @@ examples: |-
|
|||
--name redis_2 \
|
||||
--replicas 5 \
|
||||
--env MYVAR=foo \
|
||||
redis:3.0.6
|
||||
redis:7.4.1
|
||||
```
|
||||
|
||||
To specify multiple environment variables, specify multiple `--env` flags, each
|
||||
|
@ -956,7 +956,7 @@ examples: |-
|
|||
--replicas 5 \
|
||||
--env MYVAR=foo \
|
||||
--env MYVAR2=bar \
|
||||
redis:3.0.6
|
||||
redis:7.4.1
|
||||
```
|
||||
|
||||
### Create a service with specific hostname (--hostname) {#hostname}
|
||||
|
@ -965,7 +965,7 @@ examples: |-
|
|||
For example:
|
||||
|
||||
```console
|
||||
$ docker service create --name redis --hostname myredis redis:3.0.6
|
||||
$ docker service create --name redis --hostname myredis redis:7.4.1
|
||||
```
|
||||
|
||||
### Set metadata on a service (-l, --label) {#label}
|
||||
|
@ -978,7 +978,7 @@ examples: |-
|
|||
--name redis_2 \
|
||||
--label com.example.foo="bar" \
|
||||
--label bar=baz \
|
||||
redis:3.0.6
|
||||
redis:7.4.1
|
||||
```
|
||||
|
||||
For more information about labels, refer to [apply custom
|
||||
|
@ -1367,7 +1367,7 @@ examples: |-
|
|||
$ docker service create \
|
||||
--name redis_2 \
|
||||
--mode global \
|
||||
redis:3.0.6
|
||||
redis:7.4.1
|
||||
```
|
||||
|
||||
### Specify service constraints (--constraint) {#constraint}
|
||||
|
@ -1400,7 +1400,7 @@ examples: |-
|
|||
--name redis_2 \
|
||||
--constraint node.platform.os==linux \
|
||||
--constraint node.labels.type==queue \
|
||||
redis:3.0.6
|
||||
redis:7.4.1
|
||||
```
|
||||
|
||||
If the service constraints exclude all nodes in the cluster, a message is printed
|
||||
|
@ -1448,7 +1448,7 @@ examples: |-
|
|||
--replicas 9 \
|
||||
--name redis_2 \
|
||||
--placement-pref spread=node.labels.datacenter \
|
||||
redis:3.0.6
|
||||
redis:7.4.1
|
||||
```
|
||||
|
||||
This uses `--placement-pref` with a `spread` strategy (currently the only
|
||||
|
@ -1500,7 +1500,7 @@ examples: |-
|
|||
--name redis_2 \
|
||||
--placement-pref 'spread=node.labels.datacenter' \
|
||||
--placement-pref 'spread=node.labels.rack' \
|
||||
redis:3.0.6
|
||||
redis:7.4.1
|
||||
```
|
||||
|
||||
When updating a service with `docker service update`, `--placement-pref-add`
|
||||
|
|
|
@ -65,7 +65,7 @@ examples: |-
|
|||
```console
|
||||
$ docker service ls
|
||||
ID NAME MODE REPLICAS IMAGE
|
||||
dmu1ept4cxcf redis replicated 3/3 redis:3.0.6
|
||||
dmu1ept4cxcf redis replicated 3/3 redis:7.4.1
|
||||
```
|
||||
|
||||
Both `docker service inspect redis`, and `docker service inspect dmu1ept4cxcf`
|
||||
|
@ -90,7 +90,7 @@ examples: |-
|
|||
"Name": "redis",
|
||||
"TaskTemplate": {
|
||||
"ContainerSpec": {
|
||||
"Image": "redis:3.0.6"
|
||||
"Image": "redis:7.4.1"
|
||||
},
|
||||
"Resources": {
|
||||
"Limits": {},
|
||||
|
|
|
@ -70,7 +70,7 @@ examples: |-
|
|||
|
||||
ID NAME MODE REPLICAS IMAGE
|
||||
c8wgl7q4ndfd frontend replicated 5/5 nginx:alpine
|
||||
dmu1ept4cxcf redis replicated 3/3 redis:3.0.6
|
||||
dmu1ept4cxcf redis replicated 3/3 redis:7.4.1
|
||||
iwe3278osahj mongo global 7/7 mongo:3.3
|
||||
hh08h9uu8uwr job replicated-job 1/1 (3/5 completed) nginx:latest
|
||||
```
|
||||
|
@ -101,7 +101,7 @@ examples: |-
|
|||
```console
|
||||
$ docker service ls -f "id=0bcjw"
|
||||
ID NAME MODE REPLICAS IMAGE
|
||||
0bcjwfh8ychr redis replicated 1/1 redis:3.0.6
|
||||
0bcjwfh8ychr redis replicated 1/1 redis:7.4.1
|
||||
```
|
||||
|
||||
#### label
|
||||
|
@ -117,7 +117,7 @@ examples: |-
|
|||
ID NAME MODE REPLICAS IMAGE
|
||||
01sl1rp6nj5u frontend2 replicated 1/1 nginx:alpine
|
||||
36xvvwwauej0 frontend replicated 5/5 nginx:alpine
|
||||
74nzcxxjv6fq backend replicated 3/3 redis:3.0.6
|
||||
74nzcxxjv6fq backend replicated 3/3 redis:7.4.1
|
||||
```
|
||||
|
||||
The following filter matches only services with the `project` label with the
|
||||
|
@ -127,7 +127,7 @@ examples: |-
|
|||
$ docker service ls --filter label=project=project-a
|
||||
ID NAME MODE REPLICAS IMAGE
|
||||
36xvvwwauej0 frontend replicated 5/5 nginx:alpine
|
||||
74nzcxxjv6fq backend replicated 3/3 redis:3.0.6
|
||||
74nzcxxjv6fq backend replicated 3/3 redis:7.4.1
|
||||
```
|
||||
|
||||
#### mode
|
||||
|
@ -151,7 +151,7 @@ examples: |-
|
|||
```console
|
||||
$ docker service ls --filter name=redis
|
||||
ID NAME MODE REPLICAS IMAGE
|
||||
0bcjwfh8ychr redis replicated 1/1 redis:3.0.6
|
||||
0bcjwfh8ychr redis replicated 1/1 redis:7.4.1
|
||||
```
|
||||
|
||||
### Format the output (--format) {#format}
|
||||
|
|
|
@ -84,35 +84,35 @@ examples: |-
|
|||
$ docker service ps redis
|
||||
|
||||
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
|
||||
0qihejybwf1x redis.1 redis:3.0.5 manager1 Running Running 8 seconds
|
||||
bk658fpbex0d redis.2 redis:3.0.5 worker2 Running Running 9 seconds
|
||||
5ls5s5fldaqg redis.3 redis:3.0.5 worker1 Running Running 9 seconds
|
||||
8ryt076polmc redis.4 redis:3.0.5 worker1 Running Running 9 seconds
|
||||
1x0v8yomsncd redis.5 redis:3.0.5 manager1 Running Running 8 seconds
|
||||
71v7je3el7rr redis.6 redis:3.0.5 worker2 Running Running 9 seconds
|
||||
4l3zm9b7tfr7 redis.7 redis:3.0.5 worker2 Running Running 9 seconds
|
||||
9tfpyixiy2i7 redis.8 redis:3.0.5 worker1 Running Running 9 seconds
|
||||
3w1wu13yupln redis.9 redis:3.0.5 manager1 Running Running 8 seconds
|
||||
8eaxrb2fqpbn redis.10 redis:3.0.5 manager1 Running Running 8 seconds
|
||||
0qihejybwf1x redis.1 redis:7.4.0 manager1 Running Running 8 seconds
|
||||
bk658fpbex0d redis.2 redis:7.4.0 worker2 Running Running 9 seconds
|
||||
5ls5s5fldaqg redis.3 redis:7.4.0 worker1 Running Running 9 seconds
|
||||
8ryt076polmc redis.4 redis:7.4.0 worker1 Running Running 9 seconds
|
||||
1x0v8yomsncd redis.5 redis:7.4.0 manager1 Running Running 8 seconds
|
||||
71v7je3el7rr redis.6 redis:7.4.0 worker2 Running Running 9 seconds
|
||||
4l3zm9b7tfr7 redis.7 redis:7.4.0 worker2 Running Running 9 seconds
|
||||
9tfpyixiy2i7 redis.8 redis:7.4.0 worker1 Running Running 9 seconds
|
||||
3w1wu13yupln redis.9 redis:7.4.0 manager1 Running Running 8 seconds
|
||||
8eaxrb2fqpbn redis.10 redis:7.4.0 manager1 Running Running 8 seconds
|
||||
```
|
||||
|
||||
In addition to running tasks, the output also shows the task history. For
|
||||
example, after updating the service to use the `redis:3.0.6` image, the output
|
||||
example, after updating the service to use the `redis:7.4.1` image, the output
|
||||
may look like this:
|
||||
|
||||
```console
|
||||
$ docker service ps redis
|
||||
|
||||
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
|
||||
50qe8lfnxaxk redis.1 redis:3.0.6 manager1 Running Running 6 seconds ago
|
||||
ky2re9oz86r9 \_ redis.1 redis:3.0.5 manager1 Shutdown Shutdown 8 seconds ago
|
||||
3s46te2nzl4i redis.2 redis:3.0.6 worker2 Running Running less than a second ago
|
||||
nvjljf7rmor4 \_ redis.2 redis:3.0.6 worker2 Shutdown Rejected 23 seconds ago "No such image: redis@sha256:6…"
|
||||
vtiuz2fpc0yb \_ redis.2 redis:3.0.5 worker2 Shutdown Shutdown 1 second ago
|
||||
jnarweeha8x4 redis.3 redis:3.0.6 worker1 Running Running 3 seconds ago
|
||||
vs448yca2nz4 \_ redis.3 redis:3.0.5 worker1 Shutdown Shutdown 4 seconds ago
|
||||
jf1i992619ir redis.4 redis:3.0.6 worker1 Running Running 10 seconds ago
|
||||
blkttv7zs8ee \_ redis.4 redis:3.0.5 worker1 Shutdown Shutdown 11 seconds ago
|
||||
50qe8lfnxaxk redis.1 redis:7.4.1 manager1 Running Running 6 seconds ago
|
||||
ky2re9oz86r9 \_ redis.1 redis:7.4.0 manager1 Shutdown Shutdown 8 seconds ago
|
||||
3s46te2nzl4i redis.2 redis:7.4.1 worker2 Running Running less than a second ago
|
||||
nvjljf7rmor4 \_ redis.2 redis:7.4.1 worker2 Shutdown Rejected 23 seconds ago "No such image: redis@sha256:6…"
|
||||
vtiuz2fpc0yb \_ redis.2 redis:7.4.0 worker2 Shutdown Shutdown 1 second ago
|
||||
jnarweeha8x4 redis.3 redis:7.4.1 worker1 Running Running 3 seconds ago
|
||||
vs448yca2nz4 \_ redis.3 redis:7.4.0 worker1 Shutdown Shutdown 4 seconds ago
|
||||
jf1i992619ir redis.4 redis:7.4.1 worker1 Running Running 10 seconds ago
|
||||
blkttv7zs8ee \_ redis.4 redis:7.4.0 worker1 Shutdown Shutdown 11 seconds ago
|
||||
```
|
||||
|
||||
The number of items in the task history is determined by the
|
||||
|
@ -130,10 +130,10 @@ examples: |-
|
|||
$ docker service ps --no-trunc redis
|
||||
|
||||
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
|
||||
50qe8lfnxaxksi9w2a704wkp7 redis.1 redis:3.0.6@sha256:6a692a76c2081888b589e26e6ec835743119fe453d67ecf03df7de5b73d69842 manager1 Running Running 5 minutes ago
|
||||
ky2re9oz86r9556i2szb8a8af \_ redis.1 redis:3.0.5@sha256:f8829e00d95672c48c60f468329d6693c4bdd28d1f057e755f8ba8b40008682e worker2 Shutdown Shutdown 5 minutes ago
|
||||
bk658fpbex0d57cqcwoe3jthu redis.2 redis:3.0.6@sha256:6a692a76c2081888b589e26e6ec835743119fe453d67ecf03df7de5b73d69842 worker2 Running Running 5 seconds
|
||||
nvjljf7rmor4htv7l8rwcx7i7 \_ redis.2 redis:3.0.6@sha256:6a692a76c2081888b589e26e6ec835743119fe453d67ecf03df7de5b73d69842 worker2 Shutdown Rejected 5 minutes ago "No such image: redis@sha256:6a692a76c2081888b589e26e6ec835743119fe453d67ecf03df7de5b73d69842"
|
||||
50qe8lfnxaxksi9w2a704wkp7 redis.1 redis:7.4.1@sha256:6a692a76c2081888b589e26e6ec835743119fe453d67ecf03df7de5b73d69842 manager1 Running Running 5 minutes ago
|
||||
ky2re9oz86r9556i2szb8a8af \_ redis.1 redis:7.4.0@sha256:f8829e00d95672c48c60f468329d6693c4bdd28d1f057e755f8ba8b40008682e worker2 Shutdown Shutdown 5 minutes ago
|
||||
bk658fpbex0d57cqcwoe3jthu redis.2 redis:7.4.1@sha256:6a692a76c2081888b589e26e6ec835743119fe453d67ecf03df7de5b73d69842 worker2 Running Running 5 seconds
|
||||
nvjljf7rmor4htv7l8rwcx7i7 \_ redis.2 redis:7.4.1@sha256:6a692a76c2081888b589e26e6ec835743119fe453d67ecf03df7de5b73d69842 worker2 Shutdown Rejected 5 minutes ago "No such image: redis@sha256:6a692a76c2081888b589e26e6ec835743119fe453d67ecf03df7de5b73d69842"
|
||||
```
|
||||
|
||||
### Filtering (--filter) {#filter}
|
||||
|
@ -159,8 +159,8 @@ examples: |-
|
|||
$ docker service ps -f "id=8" redis
|
||||
|
||||
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
|
||||
8ryt076polmc redis.4 redis:3.0.6 worker1 Running Running 9 seconds
|
||||
8eaxrb2fqpbn redis.10 redis:3.0.6 manager1 Running Running 8 seconds
|
||||
8ryt076polmc redis.4 redis:7.4.1 worker1 Running Running 9 seconds
|
||||
8eaxrb2fqpbn redis.10 redis:7.4.1 manager1 Running Running 8 seconds
|
||||
```
|
||||
|
||||
#### name
|
||||
|
@ -171,7 +171,7 @@ examples: |-
|
|||
$ docker service ps -f "name=redis.1" redis
|
||||
|
||||
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
|
||||
qihejybwf1x5 redis.1 redis:3.0.6 manager1 Running Running 8 seconds
|
||||
qihejybwf1x5 redis.1 redis:7.4.1 manager1 Running Running 8 seconds
|
||||
```
|
||||
|
||||
|
||||
|
@ -183,10 +183,10 @@ examples: |-
|
|||
$ docker service ps -f "node=manager1" redis
|
||||
|
||||
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
|
||||
0qihejybwf1x redis.1 redis:3.0.6 manager1 Running Running 8 seconds
|
||||
1x0v8yomsncd redis.5 redis:3.0.6 manager1 Running Running 8 seconds
|
||||
3w1wu13yupln redis.9 redis:3.0.6 manager1 Running Running 8 seconds
|
||||
8eaxrb2fqpbn redis.10 redis:3.0.6 manager1 Running Running 8 seconds
|
||||
0qihejybwf1x redis.1 redis:7.4.1 manager1 Running Running 8 seconds
|
||||
1x0v8yomsncd redis.5 redis:7.4.1 manager1 Running Running 8 seconds
|
||||
3w1wu13yupln redis.9 redis:7.4.1 manager1 Running Running 8 seconds
|
||||
8eaxrb2fqpbn redis.10 redis:7.4.1 manager1 Running Running 8 seconds
|
||||
```
|
||||
|
||||
#### desired-state
|
||||
|
|
|
@ -96,7 +96,7 @@ examples: |-
|
|||
|
||||
ID NAME MODE REPLICAS IMAGE
|
||||
3pr5mlvu3fh9 frontend replicated 5/5 nginx:alpine
|
||||
74nzcxxjv6fq backend replicated 3/3 redis:3.0.6
|
||||
74nzcxxjv6fq backend replicated 3/3 redis:7.4.1
|
||||
```
|
||||
deprecated: false
|
||||
hidden: false
|
||||
|
|
|
@ -125,7 +125,7 @@ long: |-
|
|||
#### Limit events by time (--since, --until) {#since}
|
||||
|
||||
The `--since` and `--until` parameters can be Unix timestamps, date formatted
|
||||
timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed
|
||||
timestamps, or Go duration strings supported by [ParseDuration](https://pkg.go.dev/time#ParseDuration) (e.g. `10m`, `1h30m`) computed
|
||||
relative to the client machine’s time. If you do not provide the `--since` option,
|
||||
the command returns only new and/or live events. Supported formats for date
|
||||
formatted time stamps include RFC3339Nano, RFC3339, `2006-01-02T15:04:05`,
|
||||
|
|
|
@ -144,7 +144,7 @@ examples: |-
|
|||
* label (`label=<key>`, `label=<key>=<value>`, `label!=<key>`, or `label!=<key>=<value>`) - only remove containers, images, networks, and volumes with (or without, in case `label!=...` is used) the specified labels.
|
||||
|
||||
The `until` filter can be Unix timestamps, date formatted
|
||||
timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed
|
||||
timestamps, or Go duration strings supported by [ParseDuration](https://pkg.go.dev/time#ParseDuration) (e.g. `10m`, `1h30m`) computed
|
||||
relative to the daemon machine’s time. Supported formats for date
|
||||
formatted time stamps include RFC3339Nano, RFC3339, `2006-01-02T15:04:05`,
|
||||
`2006-01-02T15:04:05.999999999`, `2006-01-02T07:00`, and `2006-01-02`. The local
|
||||
|
|
Loading…
Reference in New Issue