title: Golang http.Get displays error EOF in Container
body: <p>I have a golang script that calls an HTTP API. Everything works great when I run it on my development computer. Once I create the container and run it I get an EOF at the end of the URL on panic. I have read a lot of issues like this and have tried everyone I see. I added a ca-certificates.crt from my host machine to the container to /etc/ssl/certs/. I set the request close to true, I have disabled Keep-Alive and Compression. All of these steps worked for others on other posts. Any help appreciated.</p>
  
  <p>I got my certfile from <a href="https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt" rel="nofollow noreferrer">https://raw.githubusercontent.com/bagder/ca-bundle/master/ca-bundle.crt</a></p>
  
  <p>I am running go version go1.9.2 darwin/amd64 and the container is on a ubuntu 16.04 host.</p>
  
  <pre><code>client := &amp;http.Client{Timeout: 30 * time.Second, Transport: &amp;http.Transport{
      DisableCompression:true,
      DisableKeepAlives:  true,
  }}
  
  url := "https://myapiurl.com"
  req, err := http.NewRequest("POST", url, bytes.NewBuffer(mybodybytes))
  req.Close = true
  req.Header.Set("Content-Type", "application/json")
  resp, err := client.Do(req)
  if err != nil {
      log.Panic(err) // Panics Here
  }
  defer resp.Body.Close()
  ...
  </code></pre>
  
  <p>Dockerfile:</p>
  
  <pre><code> FROM scratch
  
      ADD ca-certificates.crt /etc/ssl/certs/
  
      ADD myservice /
      CMD ["/myservice"]
  </code></pre>