[GH-ISSUE #542] Docker network issue: Could not resolve host: github.com #402

Closed
opened 2026-02-27 23:00:24 +03:00 by kerem · 4 comments
Owner

Originally created by @acheong08 on GitHub (Sep 26, 2022).
Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/542

 $ docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e GENERATE_UNIQUE=true \
    -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \
    sickcodes/docker-osx:monterey
DEVICE_MODEL:       iMacPro1,1
SERIAL_SET_COUNT:   1
OUTPUT_DIRECTORY:   .
Cloning into 'OpenCorePkg'...
fatal: unable to access 'https://github.com/acidanthera/OpenCorePkg.git/': Could not resolve host: github.com

Tried with and without VPN

Originally created by @acheong08 on GitHub (Sep 26, 2022). Original GitHub issue: https://github.com/sickcodes/Docker-OSX/issues/542 ``` $ docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ -e GENERATE_UNIQUE=true \ -e MASTER_PLIST_URL='https://raw.githubusercontent.com/sickcodes/osx-serial-generator/master/config-custom.plist' \ sickcodes/docker-osx:monterey DEVICE_MODEL: iMacPro1,1 SERIAL_SET_COUNT: 1 OUTPUT_DIRECTORY: . Cloning into 'OpenCorePkg'... fatal: unable to access 'https://github.com/acidanthera/OpenCorePkg.git/': Could not resolve host: github.com ``` Tried with and without VPN
kerem closed this issue 2026-02-27 23:00:24 +03:00
Author
Owner

@acheong08 commented on GitHub (Sep 26, 2022):

China blocks GitHub. GitHub blocks VPN

<!-- gh-comment-id:1257686997 --> @acheong08 commented on GitHub (Sep 26, 2022): China blocks GitHub. GitHub blocks VPN
Author
Owner

@linghai06 commented on GitHub (Nov 27, 2022):

@acheong08 did you work around the problem?

<!-- gh-comment-id:1328256457 --> @linghai06 commented on GitHub (Nov 27, 2022): @acheong08 did you work around the problem?
Author
Owner

@acheong08 commented on GitHub (Nov 27, 2022):

@acheong08 did you work around the problem?

Yes but I don't know how. I reinstalled the image after a while and now the image doesn't work without a VPN.

A possibility: Use a local DNS resolver to prevent the VPN overriding the container's DNS.

<!-- gh-comment-id:1328257999 --> @acheong08 commented on GitHub (Nov 27, 2022): > @acheong08 did you work around the problem? Yes but I don't know how. I reinstalled the image after a while and now the image doesn't work without a VPN. A possibility: Use a local DNS resolver to prevent the VPN overriding the container's DNS.
Author
Owner

@linClubs commented on GitHub (Dec 20, 2023):

哥,怎么解决这个问题的,能改源文件不把git地址加上代理?

<!-- gh-comment-id:1863896725 --> @linClubs commented on GitHub (Dec 20, 2023): 哥,怎么解决这个问题的,能改源文件不把git地址加上代理?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Docker-OSX#402
No description provided.