{"action":"created","issue":{"url":"https://api.github.com/repos/docker/swarm/issues/204","labels_url":"https://api.github.com/repos/docker/swarm/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/docker/swarm/issues/204/comments","events_url":"https://api.github.com/repos/docker/swarm/issues/204/events","html_url":"https://github.com/docker/swarm/issues/204","id":53021979,"number":204,"title":"consistent addressing","user":{"login":"phemmer","id":1826947,"avatar_url":"https://avatars.githubusercontent.com/u/1826947?v=3","gravatar_id":"","url":"https://api.github.com/users/phemmer","html_url":"https://github.com/phemmer","followers_url":"https://api.github.com/users/phemmer/followers","following_url":"https://api.github.com/users/phemmer/following{/other_user}","gists_url":"https://api.github.com/users/phemmer/gists{/gist_id}","starred_url":"https://api.github.com/users/phemmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phemmer/subscriptions","organizations_url":"https://api.github.com/users/phemmer/orgs","repos_url":"https://api.github.com/users/phemmer/repos","events_url":"https://api.github.com/users/phemmer/events{/privacy}","received_events_url":"https://api.github.com/users/phemmer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/swarm/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"vieux","id":1032519,"avatar_url":"https://avatars.githubusercontent.com/u/1032519?v=3","gravatar_id":"","url":"https://api.github.com/users/vieux","html_url":"https://github.com/vieux","followers_url":"https://api.github.com/users/vieux/followers","following_url":"https://api.github.com/users/vieux/following{/other_user}","gists_url":"https://api.github.com/users/vieux/gists{/gist_id}","starred_url":"https://api.github.com/users/vieux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vieux/subscriptions","organizations_url":"https://api.github.com/users/vieux/orgs","repos_url":"https://api.github.com/users/vieux/repos","events_url":"https://api.github.com/users/vieux/events{/privacy}","received_events_url":"https://api.github.com/users/vieux/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2014-12-29T06:20:32Z","updated_at":"2015-01-20T01:18:54Z","closed_at":null,"body":"The addressing of servers is rather inconsistent, especially between docker & swarm.\r\n\r\n* The Docker documentation says to use the format `tcp://1.2.3.4:2375` ([here](https://github.com/docker/docker/blob/master/docs/sources/reference/commandline/cli.md#daemon-socket-option))\r\n* The swarm documentation says to use the format `1.2.3.4:2375` ([here](https://github.com/docker/swarm)).\r\n* The `swarm list` and `docker info` commands output the format `http://1.2.3.4:2375\r\n* The docker client does not accept `http://`protocol prefixes, only `tcp://`.\r\n* The format `tcp://1.2.3.4:2375` (and `http://...`) is not a host (is named as such in `$SWARM_HOST` and `$DOCKER_HOST`). The format `1.2.3.4:2375` is not a host either. A host, or hostname, does not include protocol or port.\r\n* The `swarm join` command uses `--addr` for specifying the IP & PORT\r\n* The `swarm manage` command uses `--host` for specifying the IP & PORT\r\n\r\n\r\nAs you can see, the naming is all over the place (and this is just from a brief look as well). Half these are URLs & URIs, the other half might be considered addresses, and none of them are hosts, but most are labeled as such.\r\nWhile I personally would prefer we not call things 'hosts' that aren't hosts, it's a little late to fix this naming issue. However I do think all this needs to be made consistent. The documentation can be fixed at any time, and the swarm code can be fixed before it is labeled as 'stable'."},"comment":{"url":"https://api.github.com/repos/docker/swarm/issues/comments/70589314","html_url":"https://github.com/docker/swarm/issues/204#issuecomment-70589314","issue_url":"https://api.github.com/repos/docker/swarm/issues/204","id":70589314,"user":{"login":"phemmer","id":1826947,"avatar_url":"https://avatars.githubusercontent.com/u/1826947?v=3","gravatar_id":"","url":"https://api.github.com/users/phemmer","html_url":"https://github.com/phemmer","followers_url":"https://api.github.com/users/phemmer/followers","following_url":"https://api.github.com/users/phemmer/following{/other_user}","gists_url":"https://api.github.com/users/phemmer/gists{/gist_id}","starred_url":"https://api.github.com/users/phemmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phemmer/subscriptions","organizations_url":"https://api.github.com/users/phemmer/orgs","repos_url":"https://api.github.com/users/phemmer/repos","events_url":"https://api.github.com/users/phemmer/events{/privacy}","received_events_url":"https://api.github.com/users/phemmer/received_events","type":"User","site_admin":false},"created_at":"2015-01-20T01:18:54Z","updated_at":"2015-01-20T01:18:54Z","body":"Well in it's current state, it's now broken for me:\r\n\r\n```\r\n# cat .swarm_discovery \r\n172.17.0.81:2375\r\n172.17.0.82:2375\r\n172.17.0.83:2375\r\n\r\n# docker info\r\nContainers: 0\r\nNodes: 0\r\n```\r\n\r\nAnd the swarm daemon logs are spitting out:\r\n\r\n```\r\n2015-01-19 20:18:10 swarm: time=\"2015-01-19T20:18:10-05:00\" level=error msg=\"Get 172.17.0.25:2375/v1.15/info: unsupported protocol scheme \\\"\\\". Are you trying to connect to a TLS-enabled daemon without TLS?\" \r\n2015-01-19 20:18:10 swarm: time=\"2015-01-19T20:18:10-05:00\" level=error msg=\"Get 172.17.0.26:2375/v1.15/info: unsupported protocol scheme \\\"\\\". Are you trying to connect to a TLS-enabled daemon without TLS?\" \r\n2015-01-19 20:18:10 swarm: time=\"2015-01-19T20:18:10-05:00\" level=error msg=\"Get 172.17.0.27:2375/v1.15/info: unsupported protocol scheme \\\"\\\". Are you trying to connect to a TLS-enabled daemon without TLS?\" \r\n```"}}