Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can i run docker for mac #32

Closed
i5ting opened this issue Dec 16, 2014 · 16 comments
Closed

how can i run docker for mac #32

i5ting opened this issue Dec 16, 2014 · 16 comments

Comments

@i5ting
Copy link

i5ting commented Dec 16, 2014

docker pull debian
Pulling repository debian
2014/12/16 22:19:08 Get https://index.docker.io/v1/repositories/debian/images: x509: certificate has expired or is not yet valid
@henriquemoody
Copy link

http://boot2docker.io/

@henriquemoody
Copy link

You can use boot2docker.

@i5ting
Copy link
Author

i5ting commented Dec 16, 2014

thanks @henriquemoody ,i use boot2docker good for other dockfile,but can't run

streem git:(master) docker pull debian   
2014/12/16 22:36:27 Cannot connect to the Docker daemon. Is 'docker -d' running on this host?

@nicolasgarnier
Copy link

mhhh same here... On Mac.

@larruda
Copy link

larruda commented Feb 5, 2015

Hey guys, I got the same problem and I finally managed to solve the issue!!
It's because running on a Mac needs that tiny VM and it turns out that VirtualBox sleeping feature makes the VM's clock fail to synchronise. In order to fix that you need first to ssh into the VM by running boot2docker ssh and then within the machine run sudo ntpclient -s -h pool.ntp.org. Make sure the date is synced by running date. Then you should be ready to go! :D

References:
boot2docker/boot2docker#69
https://github.com/beechnut/boot2docker-ntp

@steve0hh
Copy link

@larruda I still get this error. even after syncing my time in my boot2docker image thou.

@gservat
Copy link

gservat commented Mar 21, 2015

The SSL certificate on https://index.docker.io does look expired...

@drish
Copy link

drish commented Mar 21, 2015

same here, and my date seems to be ok.

@schmunk42
Copy link

Had this issue with a vagrant box, syncing time ntpdate on the docker host fixed it.

@drish
Copy link

drish commented Mar 21, 2015

yeah, I fixed it here too (vagrant box) @schmunk42 , thx. I used dpkg-reconfigure tzdata

@gservat
Copy link

gservat commented Mar 21, 2015

The certificate was expired but they fixed it.

@steve0hh
Copy link

Yep. See moby/moby#11534

@bensonmiller
Copy link

Thanks @larruda. I had this problem when I woke boot2docker after a long nap. The ntpdate fix worked perfectly.

@trenpixster
Copy link

Thanks @larruda, also worked for me 👍

@niklokz
Copy link

niklokz commented May 25, 2016

Update the clock solved for me.

@matz
Copy link
Owner

matz commented May 26, 2016

May I close this issue?

@i5ting i5ting closed this as completed May 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests