Comments (9)
I agree there are things to fix in swarm,
I'm afraid, as you said, it's too late to fix $DOCKER_HOST
in docker.
I'll update the documentation when it's possible.
Regarding The swarm join
command uses --addr
for specifying the IP & PORT
and The swarm manage
command uses --host
for specifying the IP & PORT
It's not the same flag on purpose (I'm not saying it's the right flag name) for manage
we are using the same flag as Docker because your are actually starting some sort of Docker Daemon. For join we publish the addr
we want to advertise.
I think the 1st thing we need to fix is the protocol issue.
Here is what I would like to do:
- The discovery service will always receive and return addr with protocol.
- Only 3 protocol are valid
- http
- https
- tcp (will be replaced by http or https whether or not you have a tls.Config)
- If you pass an addr without protocol,
tcp
will beprepended
This will be related to: The swarm list
and docker info
commands output the format http://1.2.3.4:2375
because it depends of what you send.
Thanks for reporting those issues, do you have any suggestion to improve ?
from classicswarm.
see #208
from classicswarm.
see #237
from classicswarm.
I believe we solved most of the issues ?
We can't change -H
as we use it to match docker's flags
from classicswarm.
Well in it's current state, it's now broken for me:
# cat .swarm_discovery
172.17.0.28:2375
172.17.0.29:2375
172.17.0.30:2375
# docker info
Containers: 0
Nodes: 0
And the swarm daemon logs are spitting out:
2015-01-19 20:20:10 swarm: time="2015-01-19T20:20:10-05:00" level=error msg="Get 172.17.0.28:2375/v1.15/info: unsupported protocol scheme \"\". Are you trying to connect to a TLS-enabled daemon without TLS?"
2015-01-19 20:20:10 swarm: time="2015-01-19T20:20:10-05:00" level=error msg="Get 172.17.0.29:2375/v1.15/info: unsupported protocol scheme \"\". Are you trying to connect to a TLS-enabled daemon without TLS?"
2015-01-19 20:20:10 swarm: time="2015-01-19T20:20:10-05:00" level=error msg="Get 172.17.0.30:2375/v1.15/info: unsupported protocol scheme \"\". Are you trying to connect to a TLS-enabled daemon without TLS?"
According to the docs, that should work.
from classicswarm.
@phemmer you need to update dockerclient (go get -u
)
Can you do this and try again ?
from classicswarm.
ahha, sorry about that :-)
Then yes, I think all is well enough. Though in response to #237, docker -H 1.2.3.4:2375
works fine for me. No tcp://
prefix needed.
from classicswarm.
Everything seems to be working for me as well.
from classicswarm.
Can we close this down?
from classicswarm.
Related Issues (20)
- wrong ip to node HOT 1
- How to set the unique environments for tasks on every node in docker swarm? HOT 1
- Concerns about future HOT 15
- Docker: Unable to ping another host from inside of container running in swarm HOT 3
- Help: Network Alias HOT 1
- Feature Suggestion: docker swarm <stack-name> logs should provide aggregated logs from all services HOT 1
- Ingress routing broke after service update with start first HOT 1
- Pull request validation fails, https://jenkins.dockerproject.org not available HOT 1
- Bind Volumes mess up with users and groups... HOT 8
- Please help me ....................................What is alternative method to get discover token for docker-machine swarm ????? HOT 1
- CI: replace custom "dockerswarm/dind" image with official docker:dind image
- Plans on IPv6 support in swarm HOT 1
- docker swarm manager doesn't join on proper ip:port HOT 1
- Port redirection not working with docker swarm HOT 1
- How to access private repos of docker hub? HOT 1
- max_replicas_per_node in paused/drained nodes drives to -> no suitable node when updating service HOT 9
- Grafana v6.6.3 does not work on dockerswarm HOT 1
- service creation failing HOT 1
- Can nodes in a swarm have different versions of docker-ce ? HOT 1
- Why have all issues been closed? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from classicswarm.