Skip to content

Instantly share code, notes, and snippets.

@beldpro-ci
Created May 2, 2017 14:22
Show Gist options
  • Save beldpro-ci/6b8a7350df34f4a09b91c297c787a429 to your computer and use it in GitHub Desktop.
Save beldpro-ci/6b8a7350df34f4a09b91c297c787a429 to your computer and use it in GitHub Desktop.
consul stack deploy - terminal
docker stack deploy \
--compose-file ./docker-compose.yml \
mystack
docker service ls
NAME MODE REPLICAS IMAGE
mystack_consul replicated 3/3 consul:0.7.2
docker service logs mystack_consul
(...)
consul: cluster leadership acquired
consul: New leader elected: d4ee16802a7c
raft: pipelining replication to peer {Voter 10. ...
raft: AppendEntries to {Voter 10.0.0.3:8300 10. ...
raft: pipelining replication to peer {Voter 10. ...
consul: member 'd4ee16802a7c' joined, marking h ...
consul: member 'b12fd31359dc' joined, marking h ...
consul: member 'fc0667adf8bd' joined, marking h ...
agent: Synced service 'consul'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment