From c35a6abc42e9248a6f2ae36703b2e80276ddcfc6 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 6 Aug 2021 17:14:53 +0200 Subject: [PATCH] docker-for-windows: use "console" for shell examples This allows for easier copying of the commands, without selecting the prompt. Signed-off-by: Sebastiaan van Stijn --- docker-for-windows/index.md | 2 +- docker-for-windows/networking.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker-for-windows/index.md b/docker-for-windows/index.md index fd183a489c..417f6384a6 100644 --- a/docker-for-windows/index.md +++ b/docker-for-windows/index.md @@ -226,7 +226,7 @@ Run `docker version` to verify whether you have enabled experimental features. E is listed under `Server` data. If `Experimental` is `true`, then Docker is running in experimental mode, as shown here: -```shell +```console > docker version Client: Docker Engine - Community diff --git a/docker-for-windows/networking.md b/docker-for-windows/networking.md index 39f4212df8..c53eb09924 100644 --- a/docker-for-windows/networking.md +++ b/docker-for-windows/networking.md @@ -105,13 +105,13 @@ overlay network, not a bridge network, as these are not routed. The command to run the `nginx` webserver shown in [Getting Started](index.md#explore-the-application) is an example of this. -```bash +```console $ docker run -d -p 80:80 --name webserver nginx ``` To clarify the syntax, the following two commands both publish container's port `80` to host's port `8000`: -```bash +```console $ docker run --publish 8000:80 --name webserver nginx $ docker run -p 8000:80 --name webserver nginx @@ -121,7 +121,7 @@ To publish all ports, use the `-P` flag. For example, the following command starts a container (in detached mode) and the `-P` flag publishes all exposed ports of the container to random ports on the host. -```bash +```console $ docker run -d -P --name webserver nginx ```