Advertisement
lamiastella

docker swarm

Mar 2nd, 2017
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. bash-4.3$ cd
  2. bash-4.3$ cd docker_test/
  3. bash-4.3$ git clone https://github.com/docker/example-voting-app.git
  4. Cloning into 'example-voting-app'...
  5. remote: Counting objects: 357, done.
  6. remote: Total 357 (delta 0), reused 0 (delta 0), pack-reused 357
  7. Receiving objects: 100% (357/357), 200.60 KiB | 0 bytes/s, done.
  8. Resolving deltas: 100% (129/129), done.
  9. Checking connectivity... done.
  10. bash-4.3$ ls -ltr
  11. total 0
  12. drwxr-xr-x 9 mona staff 306 Mar 2 00:46 flask-app
  13. drwxr-xr-x 16 mona staff 544 Mar 2 00:51 example-voting-app
  14. bash-4.3$ cd example-voting-app/
  15. bash-4.3$ ls
  16. LICENSE architecture.png docker-compose.yml result
  17. MAINTAINERS docker-compose-javaworker.yml docker-stack.yml vote
  18. README.md docker-compose-simple.yml dockercloud.yml worker
  19. bash-4.3$ docker swarm init
  20. Swarm initialized: current node (l9p4f53xosrttyqt0fm336ouz) is now a manager.
  21.  
  22. To add a worker to this swarm, run the following command:
  23.  
  24. docker swarm join \
  25. --token SWMTKN-1-5qd5m60xsaifybli21e9eggx4lq1z6g1nyxwqe7phvfe2awqlp-9dzo47dvx57bhlstk8u7s9ftk \
  26. 192.168.65.2:2377
  27.  
  28. To add a manager to this swarm, run 'docker swarm join-token manager' and follow the instructions.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement