GithubHelp home page GithubHelp logo

Comments (9)

vieux avatar vieux commented on June 13, 2024

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 be prepended

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.

vieux avatar vieux commented on June 13, 2024

see #208

from classicswarm.

vieux avatar vieux commented on June 13, 2024

see #237

from classicswarm.

vieux avatar vieux commented on June 13, 2024

I believe we solved most of the issues ?

We can't change -H as we use it to match docker's flags

from classicswarm.

phemmer avatar phemmer commented on June 13, 2024

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.

vieux avatar vieux commented on June 13, 2024

@phemmer you need to update dockerclient (go get -u)
Can you do this and try again ?

from classicswarm.

phemmer avatar phemmer commented on June 13, 2024

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.

technolo-g avatar technolo-g commented on June 13, 2024

Everything seems to be working for me as well.

from classicswarm.

aluzzardi avatar aluzzardi commented on June 13, 2024

Can we close this down?

from classicswarm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.