matz / streem

prototype of stream based programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how can i run docker for mac

i5ting opened this issue · comments

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

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?

mhhh same here... On Mac.

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

commented

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

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

same here, and my date seems to be ok.

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

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

The certificate was expired but they fixed it.

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

Thanks @larruda, also worked for me 👍

Update the clock solved for me.

May I close this issue?