Merge pull request #15289 from roberthbailey/docker-getting-started-guide

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot 2015-10-08 13:28:39 -07:00
commit dd702f2d11

View File

@ -102,7 +102,7 @@ docker run \
--net=host \ --net=host \
--privileged=true \ --privileged=true \
-d \ -d \
gcr.io/google_containers/hyperkube:v1.0.1 \ gcr.io/google_containers/hyperkube:v1.0.6 \
/hyperkube kubelet --containerized --hostname-override="127.0.0.1" --address="0.0.0.0" --api-servers=http://localhost:8080 --config=/etc/kubernetes/manifests /hyperkube kubelet --containerized --hostname-override="127.0.0.1" --address="0.0.0.0" --api-servers=http://localhost:8080 --config=/etc/kubernetes/manifests
``` ```
@ -111,7 +111,7 @@ This actually runs the kubelet, which in turn runs a [pod](../user-guide/pods.md
### Step Three: Run the service proxy ### Step Three: Run the service proxy
```sh ```sh
docker run -d --net=host --privileged gcr.io/google_containers/hyperkube:v1.0.1 /hyperkube proxy --master=http://127.0.0.1:8080 --v=2 docker run -d --net=host --privileged gcr.io/google_containers/hyperkube:v1.0.6 /hyperkube proxy --master=http://127.0.0.1:8080 --v=2
``` ```
### Test it out ### Test it out
@ -137,8 +137,8 @@ kubectl get nodes
This should print: This should print:
```console ```console
NAME LABELS STATUS NAME LABELS STATUS
127.0.0.1 <none> Ready 127.0.0.1 kubernetes.io/hostname=127.0.0.1 Ready
``` ```
If you are running different Kubernetes clusters, you may need to specify `-s http://localhost:8080` to select the local cluster. If you are running different Kubernetes clusters, you may need to specify `-s http://localhost:8080` to select the local cluster.
@ -160,11 +160,11 @@ kubectl expose rc nginx --port=80
This should print: This should print:
```console ```console
NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR AGE NAME LABELS SELECTOR IP(S) PORT(S)
nginx 10.0.93.211 <none> 80/TCP run=nginx 1h nginx run=nginx run=nginx 80/TCP
``` ```
If `CLUSTER_IP` is blank run the following command to obtain it. Know issue [#10836](https://github.com/kubernetes/kubernetes/issues/10836) If `IP(S)` is blank run the following command to obtain it. Know issue [#10836](https://github.com/kubernetes/kubernetes/issues/10836)
```sh ```sh
kubectl get svc nginx kubectl get svc nginx