{"action":"closed","issue":{"url":"https://api.github.com/repos/swipely/docker-api/issues/214","labels_url":"https://api.github.com/repos/swipely/docker-api/issues/214/labels{/name}","comments_url":"https://api.github.com/repos/swipely/docker-api/issues/214/comments","events_url":"https://api.github.com/repos/swipely/docker-api/issues/214/events","html_url":"https://github.com/swipely/docker-api/issues/214","id":49323899,"number":214,"title":"Cannot create container when using a secure connection to docker","user":{"login":"myers","id":12242,"avatar_url":"https://avatars.githubusercontent.com/u/12242?v=3","gravatar_id":"","url":"https://api.github.com/users/myers","html_url":"https://github.com/myers","followers_url":"https://api.github.com/users/myers/followers","following_url":"https://api.github.com/users/myers/following{/other_user}","gists_url":"https://api.github.com/users/myers/gists{/gist_id}","starred_url":"https://api.github.com/users/myers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myers/subscriptions","organizations_url":"https://api.github.com/users/myers/orgs","repos_url":"https://api.github.com/users/myers/repos","events_url":"https://api.github.com/users/myers/events{/privacy}","received_events_url":"https://api.github.com/users/myers/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-11-19T03:19:11Z","updated_at":"2015-03-18T14:20:31Z","closed_at":"2015-03-18T14:20:31Z","body":"```ruby\r\nrequire 'docker'\r\n\r\nc = Docker::Container.create('Cmd' => ['ls'], 'Image' => 'code-challenge-runner')\r\nc.start\r\n# this line causes the following error\r\nc.attach(stdin: StringIO.new(%Q|ruby -e 'puts \"sleeping\"; sleep(60)'\\n|))\r\n```\r\n\r\n```\r\n/Users/myers/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/docker-api-1.15.0/lib/docker/container.rb:217:in `block (2 levels) in hijack_for': undefined method `close_write' for #<OpenSSL::SSL::SSLSocket:0x007fad82d3cc28> (NoMethodError) (Excon::Errors::SocketError)\r\n```\r\n\r\nIndeed [OpenSSL::SSLSocket](http://ruby-doc.org/stdlib-2.1.5/libdoc/openssl/rdoc/OpenSSL/SSL/SSLSocket.html) does not have the close_write method.\r\n\r\nUsing boot2docker VM to deploy against.  It by default uses a secure connection."}}