Unable to connect to port 4243 on localhost

Just installed docker for OSX. Previously used docker with docker-machine and VirtualBox.

[art@213:~]% docker -v
Docker version 1.11.1, build 5604cbe
[art@213:~]% docker ps
An error occurred trying to connect: Get http://localhost:4243/v1.23/containers/json: EOF
[art@213:~]% curl http://localhost:4243/v1.23/containers/json
curl: (52) Empty reply from server

Hi,

From what I’ve read so far, you cannot reach the moby host (i.e. the docker host - linux -) from your mac OS.
The only way to reach moby is to use the default socket /var/run/docker.sock that seems to be available in r/w for anybody
to do so, unset DOCKER_* environment variables, then docker ps and any other command will work properly.

I’ve also seen a few subjects dealing with reaching containers from your mac host, which is not possible for now, if you need to follow them:

Oh, thank you. I found one of my configs was setting DOCKER_HOST env variable.