title: Docker container not connecting to https endpoints
body: <p>From inside a docker container, I'm running</p>
  
  <pre><code># openssl s_client -connect rubygems.org:443 -state -nbio 2&gt;&amp;1 | grep "^SSL"     
  
  SSL_connect:before/connect initialization
  SSL_connect:SSLv2/v3 write client hello A
  SSL_connect:error in SSLv2/v3 read server hello A
  </code></pre>
  
  <p>That's all I get</p>
  
  <p>I can't connect to any https site from within the docker container. The container is running on an openstack vm. The vm can connect via https.</p>
  
  <p>Any advice?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <pre><code>root@ce239554761d:/# curl -vv https://google.com
  * Rebuilt URL to: https://google.com/
  * Hostname was NOT found in DNS cache
  *   Trying 216.58.217.46...
  * Connected to google.com (216.58.217.46) port 443 (#0)
  * successfully set certificate verify locations:
  *   CAfile: none
    CApath: /etc/ssl/certs
  * SSLv3, TLS handshake, Client hello (1):
  </code></pre>
  
  <p>and then it hangs.</p>
  
  <p>Also, I'm getting intermittent successes now.</p>
  
  <p><em>Sanity Checks:</em></p>
  
  <ul>
  <li><p>changing the docker ips doesn't fix the problem</p></li>
  <li><p>The docker containers work on my local machine</p></li>
  <li><p>The docker containers work on other clouds</p></li>
  <li><p>Docker 1.10.0 doesn't work in the vms</p></li>
  <li><p>Docker 1.9.1 works in the vms</p></li>
  </ul>