Docker Community Forums

Share and learn in the Docker community.

I got an error when trying to run docker run hello-world


(Evanyetter) #1

As you can probably tell by the title, I am extremely new to docker, so I am just attempting to get it set up. After I completed the installation and running the start script, I ran the test line “docker run hello-world” to make sure everything was alright, but got the following error:

An error occurred trying to connect: Post https://192.168.56.101:2376/v1.19/cont
ainers/create: x509: certificate is valid for 127.0.0.1, 10.0.2.15, not 192.168.
56.101

I read a little bit about these types of errors on other threads of the repository, but I can’t find anything about this happening right off the bat from the hello-world command, and I also don’t think I could have performed some of the complicated “fixes” without step by step guidance.

Any help would be appreciated, thanks!


(Ozma) #2

Is it boot2docker?
what is the host time and date (must be correct for https to work)?
try this link https://github.com/docker/machine/issues/531
Is it a linux machine? did you add you user to docker group, logout and loged-in again?