I am guessing it has something to do with the network that Docker is running on. localhost is only going to work on the newer Docker for Mac beta.
If you are running on a Mac desktop, I strongly suggest using minikube instead of trying to run on docker. On Monday, July 11, 2016 at 2:27:09 AM UTC-6, Dave wrote: > > As per the official documentation [here][1] on running Kubernetes locally > within a Container -- I have followed all the steps carefully, and I am > still getting the message `connection refused` when I type `kubectl get > nodes`. > > `docker ps` shows that *api-server* is not running, and `docker logs > kubelet` does indeed varify so: > > [kubelet.go:1137] Unable to register 127.0.0.1 with the apiserver: > Post http://localhost:8080/api/v1/nodes: dial tcp 127.0.0.1:8080: > connection refused. > > After a little while, `docker logs kubelet` > > E0711 16:07:06.814735 33792 event.go:202] Unable to write event: > 'Post http://localhost:8080/api/v1/namespaces/default/events: dial tcp > 127.0.0.1:8080: connection refused' (may retry after sleeping) > > Apparently, I am not alone in experiencing this problem. > > > [1]: http://kubernetes.io/docs/getting-started-guides/docker/ > -- You received this message because you are subscribed to the Google Groups "Containers at Google" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-containers. For more options, visit https://groups.google.com/d/optout.
