Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.33 KB

SHOWCASES.md

File metadata and controls

41 lines (31 loc) · 1.33 KB

If you've built something cool during the workshop make a PR and a link to the repo.


Docker 1.12 exploration:

clone https://github.com/carnage/vagrant-docker-cluster edit hosts to give the number of hosts you want run vagrant up wait

vagrant ssh host1 sudo docker swarm init --listen-addr host1:2377 exit

vagrant ssh host2 sudo docker swarm join host1:2377

you now have a working swarm. Follow this guide to get used to working with a swarm https://docs.docker.com/engine/swarm/swarm-tutorial/deploy-service/

Logging: vagrant ssh host1 sudo docker network create -d overlay logging sudo docker service create -p 8000:80 --network logging --mode global --name logging --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock,writable=true gliderlabs/logspout

curl http://localhost:8000/logs open a new terminal vagrant ssh host1 sudo docker run --rm alpine /bin/echo 'hi'

Service discovery: sudo docker service create --network logging --name observer --mode global alpine /bin/sleep 3000000000 sudo docker ps copy container name for alpine container sudo docker exec -ti /bin/sh nslookup logging