Closed jrottenberg closed 8 years ago
Yeah this should probably be consistent for the release. cc @ehazlett
Swarm
is working on dynamic master election among other features for fault tolerant cluster so how will that be reflected with machine
?
Just confirming this is an issue with the current dev release docker-machine version 0.3.0-dev (fec8b4a)
.
The env
command output suggestion must include --swarm
option if one was provided to docker-machine env
, and omit it otherwise. Right now it will suggest to copy/paste an incorrect eval
command which will not configure client for swarm-master properly.
Swarm is working on dynamic master election among other features for fault tolerant cluster so how will that be reflected with machine?
Basically, we're going to have to decouple the swarm name from the swarm master -- there's bit too many assumptions flying right now.
Basically, we're going to have to decouple the swarm name from the swarm master -- there's bit too many assumptions flying right now.
I understand. Do you know planned timeframes for when swarm ha/failover is expected? I figured this trivial issue could be fixed quickly while there's a big ticket item coming in the future.
@aperepel the mechanics in Swarm are still being created / decided. Currently it's an experimental feature and requires specific discovery systems. Support for it won't come in this release.
@ehazlett no problem. Regarding discovery systems and bootstrapping swarm, maybe a shameless plug is due :) Take a look if that gives you some ideas https://github.com/sequenceiq/munchausen
Ah, very interesting plug @aperepel - you might be interested in joining the discussion around "hooks" / automatically starting containers on hosts in the 0.4.0 roadmap PR.
I've added some more fixes in https://github.com/docker/machine/pull/1339 to take care of the post-create help message too.
Fixed with https://github.com/docker/machine/pull/2027
The helper for the docker-machine env command is not consistent with the parameters passed :
Note : it doesn't say
So running that eval command will get me to the docker api of the swarm master, not exactly what I want.
See the port :