You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ docker stack ls
NAME SERVICES
all 3
$ docker stack ls --format "{{.Name}}: {{.Services}}"
all: 3
$ docker stack ls --format json
{"Name":"all","Services":"3"}
docker stack ps
$ docker stack ps {OPTION} {STACK_NAME}
$ docekr stack ps {STACK_NAME}
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
rbmvasdfqwe6 all_A.1 211.240.28.248:443/acs:latest Node-4 Running Running 42 minutes ago
yxoiqwerfixe all_A.2 211.240.28.248:443/acs:latest Node-2 Running Running 42 minutes ago
16ox2asdfg36 all_A.3 211.240.28.248:443/acs:latest Node-3 Running Running 42 minutes ago
gwbuqwerqid2 all_A.4 211.240.28.248:443/acs:latest Node-1 Running Running 42 minutes ago
cy8tasfu15sa all_B.1 211.240.28.248:443/ivs:latest Node-2 Running Running 7 hours ago
4bx6zwqwer3b all_B.2 211.240.28.248:443/ivs:latest Node-1 Running Running 7 hours ago
$ docker stack ps -f "node=node-1" {STACK_NAME}
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
gwbuqwerqid2 all_A.4 211.240.28.248:443/acs:latest Node-1 Running Running 42 minutes ago
4bx6zwqwer3b all_B.2 211.240.28.248:443/ivs:latest Node-1 Running Running 7 hours ago
# shows IDs for task name, without mapping IDs to Names.
$ docker stack ps --no-resolve {STACK_ALL}
# 생략하지 않고 모든 내용 출력
$ docker stack ps --no-trunc {STACK_ALL}