mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
desktop: use "console" for shell examples
This allows for easier copying of the commands, without selecting the prompt. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -38,8 +38,8 @@ variables, specify these to connect to Docker instances through Unix sockets.
|
||||
|
||||
For example:
|
||||
|
||||
```bash
|
||||
export DOCKER_HOST=unix:///var/run/docker.sock
|
||||
```console
|
||||
$ export DOCKER_HOST=unix:///var/run/docker.sock
|
||||
```
|
||||
|
||||
Docker Desktop Windows users can connect to the Docker Engine through a **named pipe**: `npipe:////./pipe/docker_engine`, or **TCP socket** at this URL:
|
||||
|
||||
@@ -21,7 +21,7 @@ The Kubernetes client command `kubectl` is included and configured to connect
|
||||
to the local Kubernetes server. If you have already installed `kubectl` and
|
||||
pointing to some other environment, such as `minikube` or a GKE cluster, ensure you change the context so that `kubectl` is pointing to `docker-desktop`:
|
||||
|
||||
```bash
|
||||
```console
|
||||
$ kubectl config get-contexts
|
||||
$ kubectl config use-context docker-desktop
|
||||
```
|
||||
@@ -62,8 +62,8 @@ the `PATH`.
|
||||
|
||||
You can test the command by listing the available nodes:
|
||||
|
||||
```bash
|
||||
kubectl get nodes
|
||||
```console
|
||||
$ kubectl get nodes
|
||||
|
||||
NAME STATUS ROLES AGE VERSION
|
||||
docker-desktop Ready master 3h v1.19.7
|
||||
|
||||
Reference in New Issue
Block a user