mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
CURRENT STATE instead of LAST STAT
With Docker version 18.09.1, build 4c52b90, the command `docker service ps helloworld` shows CURRENT STATE instead of LAST STATE. Here is my example output of the command: ``` [root@docker01 ~]$docker service ps helloworld ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS 3tj4b0gho76v helloworld.1 alpine:latest docker01 Running Running 3 minutes ago [root@docker01 ~]$ docker --version Docker version 18.09.1, build 4c52b90 ```
This commit is contained in:
@@ -92,7 +92,7 @@ the Docker CLI to see details about the service running in the swarm.
|
||||
```bash
|
||||
[manager1]$ docker service ps helloworld
|
||||
|
||||
NAME IMAGE NODE DESIRED STATE LAST STATE
|
||||
NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
|
||||
helloworld.1.8p1vev3fq5zm0mi8g0as41w35 alpine worker2 Running Running 3 minutes
|
||||
```
|
||||
|
||||
@@ -100,7 +100,7 @@ the Docker CLI to see details about the service running in the swarm.
|
||||
`worker2` node. You may see the service running on your manager node. By
|
||||
default, manager nodes in a swarm can execute tasks just like worker nodes.
|
||||
|
||||
Swarm also shows you the `DESIRED STATE` and `LAST STATE` of the service
|
||||
Swarm also shows you the `DESIRED STATE` and `CURRENT STATE` of the service
|
||||
task so you can see if tasks are running according to the service
|
||||
definition.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user