mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 09:22:44 +00:00
Merge pull request #13802 from Huawei-PaaS/fix-dead-link-in-docker-md
fix the dead link of docker.md
This commit is contained in:
commit
fa8ddb4cde
@ -42,7 +42,7 @@ Running Kubernetes locally via Docker
|
|||||||
- [Step Three: Run the service proxy](#step-three-run-the-service-proxy)
|
- [Step Three: Run the service proxy](#step-three-run-the-service-proxy)
|
||||||
- [Test it out](#test-it-out)
|
- [Test it out](#test-it-out)
|
||||||
- [Run an application](#run-an-application)
|
- [Run an application](#run-an-application)
|
||||||
- [Expose it as a service:](#expose-it-as-a-service)
|
- [Expose it as a service](#expose-it-as-a-service)
|
||||||
- [A note on turning down your cluster](#a-note-on-turning-down-your-cluster)
|
- [A note on turning down your cluster](#a-note-on-turning-down-your-cluster)
|
||||||
|
|
||||||
### Overview
|
### Overview
|
||||||
@ -128,7 +128,7 @@ On OS/X you will need to set up port forwarding via ssh:
|
|||||||
boot2docker ssh -L8080:localhost:8080
|
boot2docker ssh -L8080:localhost:8080
|
||||||
```
|
```
|
||||||
|
|
||||||
List the nodes in your cluster by running::
|
List the nodes in your cluster by running:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
kubectl get nodes
|
kubectl get nodes
|
||||||
@ -149,7 +149,7 @@ If you are running different Kubernetes clusters, you may need to specify `-s ht
|
|||||||
kubectl -s http://localhost:8080 run nginx --image=nginx --port=80
|
kubectl -s http://localhost:8080 run nginx --image=nginx --port=80
|
||||||
```
|
```
|
||||||
|
|
||||||
now run `docker ps` you should see nginx running. You may need to wait a few minutes for the image to get pulled.
|
Now run `docker ps` you should see nginx running. You may need to wait a few minutes for the image to get pulled.
|
||||||
|
|
||||||
### Expose it as a service
|
### Expose it as a service
|
||||||
|
|
||||||
@ -164,7 +164,7 @@ NAME CLUSTER_IP EXTERNAL_IP PORT(S) SELECTOR
|
|||||||
nginx 10.0.93.211 <none> 80/TCP run=nginx 1h
|
nginx 10.0.93.211 <none> 80/TCP run=nginx 1h
|
||||||
```
|
```
|
||||||
|
|
||||||
If `CLUSTER_IP` is blank run the following command to obtain it. Know issue #10836
|
If `CLUSTER_IP` 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
|
||||||
|
Loading…
Reference in New Issue
Block a user