dev-environments icon indicating copy to clipboard operation
dev-environments copied to clipboard

Can't create dev environment with non-GitHub server

Open cbrunnkvist opened this issue 3 years ago • 2 comments

Describe the bug I'm unable to clone from an internal/private/on-prem git repo - accessed through a corp VPN - and the error logged seems to hint at something related to the DNS resolver.

"Logs" extract:

Cloning into '/code'...
fatal: unable to access 'https://corp.repo.internal/my/project/': Could not resolve host: corp.repo.internal

(gh clone and git clone against that server works fine on my machine normally)

Write To Reproduce Steps to reproduce the behavior:

  1. Paste the URL of a server which is not resolvable on the internet (e.g. corp.repo.internal)
  2. Click on 'Create'
  3. See container not starting, Logs for error

Expected behavior Since the server name can be resolved on the host (-when connected through VPN), it should also work from inside Docker Engine / the UI.

Desktop (please complete the following information):

  • macOS Big Sur (11.4)
  • Docker 3.5.2.18

cbrunnkvist avatar Jul 23 '21 03:07 cbrunnkvist

Hey @cbrunnkvist Can you retry and then create and upload a diagnostic via the menu Troubleshoot/Support? You can post the Diagnostic ID directly in this issue via a comment, it will be easier for us to check what happened exactly Thanks

glours avatar Aug 10 '21 12:08 glours

As a data point, I'm able to use SSH to clone a GitHub Enterprise intranet hosted location fine under 4.5.0 of Docker Desktop for Mac. (I wasn't able to get past "username" prompt for using HTTPS clone, it didn't take user input.)

Not sure if this means it's fixed or whether there was a DNS issue at the time that you were trying to execute your test of the feature.

mattdkerr avatar Mar 21 '22 19:03 mattdkerr