{"action":"created","issue":{"url":"https://api.github.com/repos/spotify/docker-client/issues/479","repository_url":"https://api.github.com/repos/spotify/docker-client","labels_url":"https://api.github.com/repos/spotify/docker-client/issues/479/labels{/name}","comments_url":"https://api.github.com/repos/spotify/docker-client/issues/479/comments","events_url":"https://api.github.com/repos/spotify/docker-client/issues/479/events","html_url":"https://github.com/spotify/docker-client/issues/479","id":167739673,"node_id":"MDU6SXNzdWUxNjc3Mzk2NzM=","number":479,"title":"DefaultDockerClient changes default unix socket port which breaks mac beta","user":{"login":"frank-calma","id":6556555,"node_id":"MDQ6VXNlcjY1NTY1NTU=","avatar_url":"https://avatars0.githubusercontent.com/u/6556555?v=4","gravatar_id":"","url":"https://api.github.com/users/frank-calma","html_url":"https://github.com/frank-calma","followers_url":"https://api.github.com/users/frank-calma/followers","following_url":"https://api.github.com/users/frank-calma/following{/other_user}","gists_url":"https://api.github.com/users/frank-calma/gists{/gist_id}","starred_url":"https://api.github.com/users/frank-calma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frank-calma/subscriptions","organizations_url":"https://api.github.com/users/frank-calma/orgs","repos_url":"https://api.github.com/users/frank-calma/repos","events_url":"https://api.github.com/users/frank-calma/events{/privacy}","received_events_url":"https://api.github.com/users/frank-calma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-07-27T00:02:05Z","updated_at":"2018-09-24T15:58:49Z","closed_at":null,"author_association":"NONE","body":"## Description\n\nWhen the DefaultDockerClient builder analyzes the builder uri, it attempts to \"sanitize it\" through the UnixConnectionSocketFactory to a linux appropriate docker url (e.g. localhost:80). This is currently enforced regardless of the original unix endpoint specified (including the environment default). This in turn causes the client to fail to connect for any instance where the valid endpoint is a unix socket that is not localhost:80.\n\n[Add feature/bug description here]\nSee above.\n\n[Add steps on how to reproduce this issue]\n1. Run the docker mac beta. \n2. Attempt to use the library (DefaultDockerClient.fromEnv().build() is fine here, then try running a command). \n3. Watch it fail with fun stack traces.\n## What do you expect\n\nThe unix socket uri should not be unnecessarily sanitized. Just let it be. Otherwise there's no valid way to connect to the docker endpoint. \n## What happened instead\n\nSee above. Connection refused, fun stack traces. \n\n[Describe the actual results]\n## Software:\n- docker version: 1.12.0-rc4, build e4a0dbc, experimental\n- docker-client version: 5.0.2, (also fails on 5.0.1, 4.0.8)\n## Full backtrace\n\nCaused by: com.spotify.docker.client.exceptions.DockerException: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.io.IOException: Connection refused\n    at com.spotify.docker.client.DefaultDockerClient.propagate(DefaultDockerClient.java:1607)\n    at com.spotify.docker.client.DefaultDockerClient.request(DefaultDockerClient.java:1549)\n    at com.spotify.docker.client.DefaultDockerClient.createContainer(DefaultDockerClient.java:550)\n    at com.spotify.docker.client.DefaultDockerClient.createContainer(DefaultDockerClient.java:532)\n    at com.rei.selenous.test.SeleniumContainerManager.startSeleniumContainer(SeleniumContainerManager.java:99)\n    ... 25 more\nCaused by: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.io.IOException: Connection refused\n    at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299)\n    at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture$Sync.get(AbstractFuture.java:286)\n    at jersey.repackaged.com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:116)\n    at com.spotify.docker.client.DefaultDockerClient.request(DefaultDockerClient.java:1547)\n    ... 28 more\nCaused by: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: java.io.IOException: Connection refused\n    at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:481)\n    at org.glassfish.jersey.apache.connector.ApacheConnector$1.run(ApacheConnector.java:491)\n    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\n    at java.util.concurrent.FutureTask.run(FutureTask.java:266)\n    at jersey.repackaged.com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299)\n    at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112)\n    at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:50)\n    at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:37)\n    at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:487)\n    at org.glassfish.jersey.client.ClientRuntime$2.run(ClientRuntime.java:177)\n    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)\n    at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)\n    at org.glassfish.jersey.internal.Errors.process(Errors.java:315)\n    at org.glassfish.jersey.internal.Errors.process(Errors.java:297)\n    at org.glassfish.jersey.internal.Errors.process(Errors.java:267)\n    at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:340)\n    at org.glassfish.jersey.client.ClientRuntime$3.run(ClientRuntime.java:209)\n    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\n    at java.util.concurrent.FutureTask.run(FutureTask.java:266)\n    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\n    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\n    at java.lang.Thread.run(Thread.java:745)\nCaused by: java.io.IOException: Connection refused\n    at jnr.unixsocket.UnixSocketChannel.doConnect(UnixSocketChannel.java:94)\n    at jnr.unixsocket.UnixSocketChannel.connect(UnixSocketChannel.java:102)\n    at com.spotify.docker.client.ApacheUnixSocket.connect(ApacheUnixSocket.java:73)\n    at com.spotify.docker.client.UnixConnectionSocketFactory.connectSocket(UnixConnectionSocketFactory.java:74)\n    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:141)\n    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)\n    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)\n    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)\n    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)\n    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)\n    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)\n    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)\n    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)\n    at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:435)\n    ... 21 more\n"},"comment":{"url":"https://api.github.com/repos/spotify/docker-client/issues/comments/424027789","html_url":"https://github.com/spotify/docker-client/issues/479#issuecomment-424027789","issue_url":"https://api.github.com/repos/spotify/docker-client/issues/479","id":424027789,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDAyNzc4OQ==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-09-24T15:58:49Z","updated_at":"2018-09-24T15:58:49Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.\n"}}
{"actor":{"display_login":"stale"}}