The recovery server could not be contacted [Error during installation] #102

Closed
opened 2025-12-28 23:24:17 +01:00 by adam · 11 comments
Owner

Originally created by @afridi26 on GitHub (Jan 11, 2021).

Hey,

I am behind a proxy. To run this docker container, I follow the instructions as specified in the README file and had also gone through boot instructions.

I ran the following command and the screen is shown to me:

docker run \
    --device /dev/kvm \
    -p 50922:10022 \
    -v /tmp/.X11-unix:/tmp/.X11-unix \
    -e "DISPLAY=${DISPLAY:-:0.0}" \
    sickcodes/docker-osx:latest

I am getting the following error during installation.

image

Any help would be appreciated.

Thanks.

Originally created by @afridi26 on GitHub (Jan 11, 2021). Hey, I am behind a proxy. To run this docker container, I follow the instructions as specified in the README file and had also gone through boot [instructions](https://github.com/sickcodes/Docker-OSX#additional-boot-instructions). I ran the following command and the screen is shown to me: ``` docker run \ --device /dev/kvm \ -p 50922:10022 \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -e "DISPLAY=${DISPLAY:-:0.0}" \ sickcodes/docker-osx:latest ``` I am getting the following error during installation. ![image](https://user-images.githubusercontent.com/5488091/104177115-4921f100-53d6-11eb-95da-20e1d0537ed7.png) Any help would be appreciated. Thanks.
adam closed this issue 2025-12-28 23:24:17 +01:00
Author
Owner

@Element21 commented on GitHub (Jan 11, 2021):

You have to set the rtc to your correct time. Open a terminal and run date Month Date Hour Minute Year without any separation. For example date 0712122318 would be “July 12 2018 at 12:23”

@Element21 commented on GitHub (Jan 11, 2021): You have to set the rtc to your correct time. Open a terminal and run `date Month Date Hour Minute Year without any separation.` For example `date 0712122318` would be “July 12 2018 at 12:23”
Author
Owner

@afridi26 commented on GitHub (Jan 12, 2021):

Hey @Element21,

Thank you for your valuable time.

I make changes as per your instruction but getting the same error.

image

But I am getting the same error again. Any idea why?

Thanks.

@afridi26 commented on GitHub (Jan 12, 2021): Hey @Element21, Thank you for your valuable time. I make changes as per your instruction but getting the same error. ![image](https://user-images.githubusercontent.com/5488091/104310892-763bd580-54a2-11eb-80e4-d375e81db3ed.png) But I am getting the same error again. Any idea why? Thanks.
Author
Owner

@Element21 commented on GitHub (Jan 12, 2021):

Hmmmmm. That fixed it for me

@Element21 commented on GitHub (Jan 12, 2021): Hmmmmm. That fixed it for me
Author
Owner

@sickcodes commented on GitHub (Jan 12, 2021):

Might be country of origin. Try a VPN?

@sickcodes commented on GitHub (Jan 12, 2021): Might be country of origin. Try a VPN?
Author
Owner

@rabinhod commented on GitHub (Jan 19, 2021):

I fixed with this link

https://www.edureka.co/community/12726/my-docker-container-has-no-internet

@rabinhod commented on GitHub (Jan 19, 2021): I fixed with this link https://www.edureka.co/community/12726/my-docker-container-has-no-internet
Author
Owner

@afridi26 commented on GitHub (Jan 19, 2021):

@rabinhod Hey Thanks,

I tried but the problem persists.

Regards,
Aftab

@afridi26 commented on GitHub (Jan 19, 2021): @rabinhod Hey Thanks, I tried but the problem persists. Regards, Aftab
Author
Owner

@sickcodes commented on GitHub (Jan 19, 2021):

When you open the Safari browser in the recovery disk, do websites load?

@sickcodes commented on GitHub (Jan 19, 2021): When you open the Safari browser in the recovery disk, do websites load?
Author
Owner

@sickcodes commented on GitHub (Jan 19, 2021):

Tbh it has to do with the proxy, Docker obeys the two environment variables below:

export HTTP_PROXY=1.1.1.1
export HTTPS_PROXY=1.1.1.1
sudo killall dockerd && sudo dockerd
@sickcodes commented on GitHub (Jan 19, 2021): Tbh it has to do with the proxy, Docker obeys the two environment variables below: ```bash export HTTP_PROXY=1.1.1.1 export HTTPS_PROXY=1.1.1.1 sudo killall dockerd && sudo dockerd ```
Author
Owner

@afridi26 commented on GitHub (Jan 19, 2021):

I tried to load a website in safari browser but its not working. I am sure it is internet issue. I am behind the proxy and connected via anyconnect.

If I am able to install openeconnect somehow inside the container, then I can get access to public internet. I am trying to update the Dockerfile, so to install openconnect and then use it? What you say is it a good idea?

@afridi26 commented on GitHub (Jan 19, 2021): I tried to load a website in safari browser but its not working. I am sure it is internet issue. I am behind the proxy and connected via anyconnect. If I am able to install openeconnect somehow inside the container, then I can get access to public internet. I am trying to update the Dockerfile, so to install openconnect and then use it? What you say is it a good idea?
Author
Owner

@rabinhod commented on GitHub (Jan 19, 2021):

@afridi26
I think the problem is your container doesn't have access to internet and it's not about macOs
at least you should be able to have ping to 8.8.8.8 from container

and then i use openvpn in my host os to continue installing ( اینجا ایرانه دیگه مجوریم )

@rabinhod commented on GitHub (Jan 19, 2021): @afridi26 I think the problem is your container doesn't have access to internet and it's not about macOs at least you should be able to have ping to 8.8.8.8 from container and then i use openvpn in my host os to continue installing ( اینجا ایرانه دیگه مجوریم )
Author
Owner

@sickcodes commented on GitHub (Jan 25, 2021):

You have to force the docker daemon to use the proxy. This is a Docker problem with your anyconnect VPN. Try a different VPN. Add a firewall rule to send docker traffic through the anyconnect VPN.

@sickcodes commented on GitHub (Jan 25, 2021): You have to force the docker daemon to use the proxy. This is a Docker problem with your anyconnect VPN. Try a different VPN. Add a firewall rule to send docker traffic through the anyconnect VPN.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#102