From 69e4ed2f249460fdc824949917443eed32beaffd Mon Sep 17 00:00:00 2001 From: LStuker Date: Sun, 3 Feb 2019 10:44:50 +0100 Subject: [PATCH] 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 ``` --- engine/swarm/swarm-tutorial/inspect-service.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/swarm/swarm-tutorial/inspect-service.md b/engine/swarm/swarm-tutorial/inspect-service.md index a5cdb8bcc8..07955729c5 100644 --- a/engine/swarm/swarm-tutorial/inspect-service.md +++ b/engine/swarm/swarm-tutorial/inspect-service.md @@ -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.