{"action":"closed","issue":{"url":"https://api.github.com/repos/sourcelair/xterm.js/issues/23","labels_url":"https://api.github.com/repos/sourcelair/xterm.js/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/sourcelair/xterm.js/issues/23/comments","events_url":"https://api.github.com/repos/sourcelair/xterm.js/issues/23/events","html_url":"https://github.com/sourcelair/xterm.js/issues/23","id":60255566,"number":23,"title":"How to connect to a docker container?","user":{"login":"maslick","id":5644706,"avatar_url":"https://avatars.githubusercontent.com/u/5644706?v=3","gravatar_id":"","url":"https://api.github.com/users/maslick","html_url":"https://github.com/maslick","followers_url":"https://api.github.com/users/maslick/followers","following_url":"https://api.github.com/users/maslick/following{/other_user}","gists_url":"https://api.github.com/users/maslick/gists{/gist_id}","starred_url":"https://api.github.com/users/maslick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maslick/subscriptions","organizations_url":"https://api.github.com/users/maslick/orgs","repos_url":"https://api.github.com/users/maslick/repos","events_url":"https://api.github.com/users/maslick/events{/privacy}","received_events_url":"https://api.github.com/users/maslick/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sourcelair/xterm.js/labels/documentation","name":"documentation","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-03-08T13:00:38Z","updated_at":"2015-03-16T06:23:10Z","closed_at":"2015-03-16T06:23:10Z","body":"Hey, \r\n\r\nI like the design of xterm.js and would like to use it to connect to a docker container. \r\nIn the documentation I can see that in the client you connect to a docker container using the following uri:\r\nurl = 'ws://docker/containers/mycontainer/attach/ws/?stdin=1&stdout=1&stderr=1&logs=1'\r\n\r\nAs far as I understood there is a server application (e.g., node.js) that's exposing the docker terminal over a socket connection. In the docker documentation I can see that you can connect to a socket container via the docker REST API, so I can do http requests to the docker daemon (http://x.x.x.x:4500/containers/json). But how can I connect to my running container using the socket protocol (ws://x.x.x.x:4500/containers/mycontainer/attach/ws/?stdin=1&stdout=1&stderr=1&logs=1')?\r\n\r\nThanks."}}