{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/12638","labels_url":"https://api.github.com/repos/docker/docker/issues/12638/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/12638/comments","events_url":"https://api.github.com/repos/docker/docker/issues/12638/events","html_url":"https://github.com/docker/docker/issues/12638","id":70132786,"number":12638,"title":"link error message was hard to read","user":{"login":"paulweb515","id":663966,"avatar_url":"https://avatars.githubusercontent.com/u/663966?v=3","gravatar_id":"","url":"https://api.github.com/users/paulweb515","html_url":"https://github.com/paulweb515","followers_url":"https://api.github.com/users/paulweb515/followers","following_url":"https://api.github.com/users/paulweb515/following{/other_user}","gists_url":"https://api.github.com/users/paulweb515/gists{/gist_id}","starred_url":"https://api.github.com/users/paulweb515/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulweb515/subscriptions","organizations_url":"https://api.github.com/users/paulweb515/orgs","repos_url":"https://api.github.com/users/paulweb515/repos","events_url":"https://api.github.com/users/paulweb515/events{/privacy}","received_events_url":"https://api.github.com/users/paulweb515/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/exp/proficient","name":"exp/proficient","color":"79BD9A"},{"url":"https://api.github.com/repos/docker/docker/labels/kind/bug","name":"kind/bug","color":"FF8C94"},{"url":"https://api.github.com/repos/docker/docker/labels/status/claimed","name":"status/claimed","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-22T13:57:20Z","updated_at":"2015-04-22T20:03:45Z","closed_at":null,"body":"I had a container I had started up with `--name=original_node --expose=5858,8081`.  When I started up a second container with `--name=link_node --link=original_node:pwnode ` I got an error message about TLS:\r\n\r\n<pre>\r\nFATA[0001] Post http:///var/run/docker.sock/v1.16/containers/6f14a062cd1589d2c40238ec04042f54c7092702bad1a8ec977099aa3addfa67/start: EOF. Are you trying to connect to a TLS-enabled daemon without TLS? \r\n</pre>\r\n\r\nAfter adding `-D` to the docker daemon, the log shows the error that caused the link_node container to fail to start:\r\n\r\n<pre>\r\ntime=\"2015-04-21T13:17:57-04:00\" level=\"info\" msg=\"POST /v1.16/containers/link_node/start\"\r\ntime=\"2015-04-21T13:17:57-04:00\" level=\"info\" msg=\"+job start(link_node)\"\r\ntime=\"2015-04-21T13:17:57-04:00\" level=\"info\" msg=\"+job allocate_interface(7e964d6133695f07fab007cfdd39924af6386545254bac47b6fdda7fb7f020d9)\"\r\ntime=\"2015-04-21T13:17:57-04:00\" level=\"info\" msg=\"-job allocate_interface(7e964d6133695f07fab007cfdd39924af6386545254bac47b6fdda7fb7f020d9) = OK (0)\"\r\ntime=\"2015-04-21T13:17:57-04:00\" level=\"info\" msg=\"+job link(-I)\"\r\ntime=\"2015-04-21T13:17:57-04:00\" level=\"info\" msg=\"-job link(-I)\"\r\ntime=\"2015-04-21T13:17:57-04:00\" level=\"info\" msg=\"-job start(link_node)\"\r\n2015/04/21 13:17:57 http: panic serving @: strconv.ParseUint: parsing \"5858,8081\": invalid syntax\r\ngoroutine 365 [running]:\r\nnet/http.func·011()\r\n        /usr/lib/golang/src/pkg/net/http/server.go:1100 +0xb7\r\nruntime.panic(0xa38a20, 0xc20afd65d0)\r\n        /usr/lib/golang/src/pkg/runtime/panic.c:248 +0x18d\r\ngithub.com/docker/docker/nat.Port.Int(0xc2085881f0, 0xd, 0xc2085881fa)\r\n        /builddir/build/BUILD/docker-1.4.1/_build/src/github.com/docker/docker/nat/nat.go:57 +0x98\r\ngithub.com/docker/docker/daemon/networkdriver/bridge.LinkContainers(0xc20b000d00, 0x7f3d7c95b8c8)\r\n        /builddir/build/BUILD/docker-1.4.1/_build/src/github.com/docker/docker/daemon/networkdriver/bridge/driver.go:515 +0x222\r\ngithub.com/docker/docker/engine.(*Job).Run(0xc20b000d00, 0x0, 0x0)\r\n        /builddir/build/BUILD/docker-1.4.1/_build/src/github.com/docker/docker/engine/job.go:83 +0x837\r\ngithub.com/docker/docker/links.(*Link).toggle(0xc20ae76460, 0xb1b7a0, 0x2, 0x961a00, 0x0, 0x0)\r\n        /builddir/build/BUILD/docker-1.4.1/_build/src/github.com/docker/docker/links/links.go:169 +0x288\r\ngithub.com/docker/docker/links.(*Link).Enable(0xc20ae76460, 0x0, 0x0)\r\n        /builddir/build/BUILD/docker-1.4.1/_build/src/github.com/docker/docker/links/links.go:141 +0x52\r\ngithub.com/docker/docker/daemon.(*Container).setupLinkedContainers(0xc2089556c0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n        /builddir/build/BUILD/docker-1.4.1/_build/src/github.com/docker/docker/daemon/container.go:1128 +0x55a\r\ngithub.com/docker/docker/daemon.(*Container).Start(0xc2089556c0, 0x0, 0x0)\r\n        /builddir/build/BUILD/docker-1.4.1/_build/src/github.com/docker/docker/daemon/container.go:346 +0x2db\r\ngithub.com/docker/docker/daemon.(*Daemon).ContainerStart(0xc208055550, 0xc20b000a80, 0x1)\r\n        /builddir/build/BUILD/docker-1.4.1/_build/src/github.com/docker/docker/daemon/start.go:38 +0x38b\r\ngithub.com/docker/docker/daemon.*Daemon.ContainerStart·fm(0xc20b000a80, 0x7f3d7c95b8c8)\r\n        /builddir/build/BUILD/docker-1.4.1/_build/src/github.com/docker/docker/daemon/daemon.go:124 +0x30\r\ngithub.com/docker/docker/engine.(*Job).Run(0xc20b000a80, 0x0, 0x0)\r\n        /builddir/build/BUILD/docker-1.4.1/_build/src/github.com/docker/docker/engine/job.go:83 +0x837\r\ngithub.com/docker/docker/api/server.postContainersStart(0xc208094840, 0xc2089d58c7, 0x4, 0x7f3d7c967ea8, 0xc20afa4640, 0xc208b3cc30, 0xc2089d5950, 0x0, 0x0)\r\n        /builddir/build/BUILD/docker-1.4.1/_build/src/github.com/docker/docker/api/server/server.go:801 +0x1ba\r\ngithub.com/docker/docker/api/server.func·002(0x7f3d7c967ea8, 0xc20afa4640, 0xc208b3cc30)\r\n        /builddir/build/BUILD/docker-1.4.1/_build/src/github.com/docker/docker/api/server/server.go:1219 +0x810\r\nnet/http.HandlerFunc.ServeHTTP(0xc20805ff00, 0x7f3d7c967ea8, 0xc20afa4640, 0xc208b3cc30)\r\n        /usr/lib/golang/src/pkg/net/http/server.go:1235 +0x40\r\ngithub.com/gorilla/mux.(*Router).ServeHTTP(0xc2080f3360, 0x7f3d7c967ea8, 0xc20afa4640, 0xc208b3cc30)\r\n        /builddir/build/BUILD/docker-1.4.1/vendor/src/github.com/gorilla/mux/mux.go:98 +0x297\r\nnet/http.serverHandler.ServeHTTP(0xc208005740, 0x7f3d7c967ea8, 0xc20afa4640, 0xc208b3cc30)\r\n        /usr/lib/golang/src/pkg/net/http/server.go:1673 +0x19f\r\nnet/http.(*conn).serve(0xc20b000a00)\r\n        /usr/lib/golang/src/pkg/net/http/server.go:1174 +0xa7e\r\ncreated by net/http.(*Server).Serve\r\n        /usr/lib/golang/src/pkg/net/http/server.go:1721 +0x313\r\ntime=\"2015-04-21T13:19:44-04:00\" level=\"info\" msg=\"POST /v1.16/containers/link_node/stop?t=10\"\r\ntime=\"2015-04-21T13:19:44-04:00\" level=\"info\" msg=\"+job stop(link_node)\"\r\n</pre>\r\n\r\nStarting original_node with `--expose=5858 --expose=8081` allowed the second container to start.  It was suggested the error message could be improved.\r\n"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/95320688","html_url":"https://github.com/docker/docker/issues/12638#issuecomment-95320688","issue_url":"https://api.github.com/repos/docker/docker/issues/12638","id":95320688,"user":{"login":"calavera","id":1050,"avatar_url":"https://avatars.githubusercontent.com/u/1050?v=3","gravatar_id":"","url":"https://api.github.com/users/calavera","html_url":"https://github.com/calavera","followers_url":"https://api.github.com/users/calavera/followers","following_url":"https://api.github.com/users/calavera/following{/other_user}","gists_url":"https://api.github.com/users/calavera/gists{/gist_id}","starred_url":"https://api.github.com/users/calavera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calavera/subscriptions","organizations_url":"https://api.github.com/users/calavera/orgs","repos_url":"https://api.github.com/users/calavera/repos","events_url":"https://api.github.com/users/calavera/events{/privacy}","received_events_url":"https://api.github.com/users/calavera/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T20:03:45Z","updated_at":"2015-04-22T20:03:45Z","body":"Hi @paulweb515,\r\n\r\nIt looks like this problem has been solved already in more modern versions of docker. Docker 1.6 gives you a more readable error when the exposed port cannot be parsed, check it out:\r\n\r\n![1 zsh 2015-04-22 13-00-48](https://cloud.githubusercontent.com/assets/1050/7284080/ed3db240-e8ef-11e4-970e-bb5820e8da19.png)\r\n\r\nDo you mind to close this issue?"}}