title: Could not resolve host in docker
body: <p>I'm trying to do an jenkins on docker, on my machine (Ubuntu).</p>
  <p>I have to access to the git repo, in my company.
  But in jenkins, I get this error :</p>
  <blockquote>
  <p>Could not resolve host: gogs.mycompany.com</p>
  </blockquote>
  <p>I think this is an DNS error, so I tried to launch my docker like that (with --dns and --dns-search)</p>
  <blockquote>
  <p>sudo docker run -p 8080:8080 -p 50000:50000 -v
  /home/xero/jenkins:/var/jenkins_home
  --name=myproject-jenkins2 --dns=127.0.1.1 --dns-search=mycompany.lan jenkins</p>
  </blockquote>
  <p>Here my /etc/resolv.conf :</p>
  <blockquote>
  <p>nameserver 127.0.1.1</p>
  <p>search mycompany.lan</p>
  </blockquote>
  <p>What I'm doing wrong ?</p>