title: Build docker behind VPN
body: <p>At the project I am at now, we have Github Enterprise set up behind a VPN, so I use OpenVPN to connect with my desktop (Ubuntu 14.04 LTS), but when I try to build with Docker (using Centos6) I always get <code>ssh: Could not resolve hostname github.xxx.xxx: Name or service not known</code>.</p>
  
  <p>I've looked at the Docker documentation, but it looks that it is only solving problem using Proxy or a Bridge, and Google only returns answers on how I can set up OpenVPN on a Docker image.</p>
  
  <p>So then I turn to Stackoverflow and hope for an answer on how I can run <code>sudo docker build image</code> and get it to use my VPN to clone from Github.</p>
  
  <p>Also, our Mac users have installed Boot2Docker, and have no problems building the image.</p>