Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bash-4.3$ cd
- bash-4.3$ cd docker_test/
- bash-4.3$ git clone https://github.com/docker/example-voting-app.git
- Cloning into 'example-voting-app'...
- remote: Counting objects: 357, done.
- remote: Total 357 (delta 0), reused 0 (delta 0), pack-reused 357
- Receiving objects: 100% (357/357), 200.60 KiB | 0 bytes/s, done.
- Resolving deltas: 100% (129/129), done.
- Checking connectivity... done.
- bash-4.3$ ls -ltr
- total 0
- drwxr-xr-x 9 mona staff 306 Mar 2 00:46 flask-app
- drwxr-xr-x 16 mona staff 544 Mar 2 00:51 example-voting-app
- bash-4.3$ cd example-voting-app/
- bash-4.3$ ls
- LICENSE architecture.png docker-compose.yml result
- MAINTAINERS docker-compose-javaworker.yml docker-stack.yml vote
- README.md docker-compose-simple.yml dockercloud.yml worker
- bash-4.3$ docker swarm init
- Swarm initialized: current node (l9p4f53xosrttyqt0fm336ouz) is now a manager.
- To add a worker to this swarm, run the following command:
- docker swarm join \
- --token SWMTKN-1-5qd5m60xsaifybli21e9eggx4lq1z6g1nyxwqe7phvfe2awqlp-9dzo47dvx57bhlstk8u7s9ftk \
- 192.168.65.2:2377
- 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