docker_advanced_install_swarm_intro

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
docker_advanced_install_swarm_intro [2020/03/09 12:00] – [Manual] andonovjdocker_advanced_install_swarm_intro [2020/03/09 12:18] (current) – [Create service] andonovj
Line 70: Line 70:
  
 <sxh bash> <sxh bash>
-[root@mgr1 ~]# docker service create --name httpDemoService --replicas 3 andonovj/httpserverdemo +[root@mgr1 ~]# docker service create --name httpDemoService --replicas 3 -p 80:1234 andonovj/httpserverdemo 
-q8s7iiv4rwu7pymf2qnelglgx+nz82mserbonjcoccp7iir7hfn
 overall progress: 3 out of 3 tasks overall progress: 3 out of 3 tasks
 1/3: running   [==================================================>] 1/3: running   [==================================================>]
Line 90: Line 90:
 sdcosdbt1f94rrvbr8m9ng30s     worker02            Ready               Active                                  19.03.7 sdcosdbt1f94rrvbr8m9ng30s     worker02            Ready               Active                                  19.03.7
 [root@mgr1 ~]# [root@mgr1 ~]#
 +[root@mgr1 ~]# docker service ps httpDemoService
 +ID                  NAME                IMAGE                            NODE                DESIRED STATE       CURRENT STATE            ERROR               PORTS
 +avcanadogs3e        httpDemoService.1   andonovj/httpserverdemo:latest   mgr1                Running             Running 27 seconds ago
 +6pgfba2xdg0q        httpDemoService.2   andonovj/httpserverdemo:latest   worker01            Running             Running 9 seconds ago
 +me2174rye7nu        httpDemoService.3   andonovj/httpserverdemo:latest   worker02            Running             Running 8 seconds ago
 +[root@mgr1 ~]#
 +
 </sxh> </sxh>
  
  
  • docker_advanced_install_swarm_intro.1583755202.txt.gz
  • Last modified: 2020/03/09 12:00
  • by andonovj