codestory / lab-docker Goto Github PK
View Code? Open in Web Editor NEWDocker lab
Docker lab
Hi !
I've been at the workshop in mixit but failed in making it work so I thought give it a try home.
I wanted to create a swarm on the google cloud but I can't get it right.
Everything works fine until this command :
docker $(docker-machine config --swarm master) network create --driver overlay lab-net
where the cloud answers :
Error response from daemon: No healthy node available in the cluster
And it is true that the master machine has 0 containers when asking to docker docker $(docker-machine config --swarm master) info
.
It seems consul never gets any connection, when I run docker $(docker-machine config kv) logs 6030c9388f8a
where 6030c9 points to the consul vm :
==> WARNING: Bootstrap mode enabled! Do not enable unless necessary
==> WARNING: It is highly recommended to set GOMAXPROCS higher than 1
==> Starting raft data migration...
==> Starting Consul agent...
==> Starting Consul agent RPC...
==> Consul agent running!
Node name: 'consul'
Datacenter: 'dc1'
Server: true (bootstrap: true)
Client Addr: 0.0.0.0 (HTTP: 8500, HTTPS: -1, DNS: 53, RPC: 8400)
Cluster Addr: 172.17.0.2 (LAN: 8301, WAN: 8302)
Gossip encrypt: false, RPC-TLS: false, TLS-Incoming: false
Atlas: <disabled>
==> Log data will now stream in as it occurs:
2016/04/30 17:32:05 [INFO] serf: EventMemberJoin: consul 172.17.0.2
2016/04/30 17:32:05 [INFO] serf: EventMemberJoin: consul.dc1 172.17.0.2
2016/04/30 17:32:05 [INFO] raft: Node at 172.17.0.2:8300 [Follower] entering Follower state
2016/04/30 17:32:05 [INFO] consul: adding server consul (Addr: 172.17.0.2:8300) (DC: dc1)
2016/04/30 17:32:05 [INFO] consul: adding server consul.dc1 (Addr: 172.17.0.2:8300) (DC: dc1)
2016/04/30 17:32:05 [ERR] agent: failed to sync remote state: No cluster leader
2016/04/30 17:32:07 [WARN] raft: Heartbeat timeout reached, starting election
2016/04/30 17:32:07 [INFO] raft: Node at 172.17.0.2:8300 [Candidate] entering Candidate state
2016/04/30 17:32:07 [INFO] raft: Election won. Tally: 1
2016/04/30 17:32:07 [INFO] raft: Node at 172.17.0.2:8300 [Leader] entering Leader state
2016/04/30 17:32:07 [INFO] consul: cluster leadership acquired
2016/04/30 17:32:07 [INFO] consul: New leader elected: consul
2016/04/30 17:32:07 [INFO] raft: Disabling EnableSingleNode (bootstrap)
2016/04/30 17:32:07 [INFO] consul: member 'consul' joined, marking health alive
2016/04/30 17:32:10 [INFO] agent: Synced service 'consul'
I can't find any help on creating a swarm with docker-machine in a cloud.
Can you help me somehow please ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.