Last active
September 3, 2015 23:21
-
-
Save javamonn/76dd276efcc814ff14c7 to your computer and use it in GitHub Desktop.
Running Kubernetes locally with docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --net=host -d gcr.io/google_containers/etcd:2.0.9 /usr/local/bin/etcd --addr=127.0.0.1:4001 --bind-addr=0.0.0.0:4001 --data-dir=/var/etcd/data | |
docker run --net=host --privileged -d -v /var/run/docker.sock:/var/run/docker.sock gcr.io/google_containers/hyperkube:v0.21.2 /hyperkube kubelet --api_servers=http://localhost:8080 --v=2 --address=0.0.0.0 --enable_server --hostname_override=127.0.0.1 --config=/etc/kubernetes/manifests --containerized | |
docker run -d --net=host --privileged gcr.io/google_containers/hyperkube:v0.21.2 /hyperkube proxy --master=http://127.0.0.1:8080 --v=2 | |
Differs from the docs at http://kubernetes.io/v1.0/docs/getting-started-guides/docker.html in that the kublet must be run with the | |
--privileged flag in order to mount volumes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment