Skip to content

Commit 0a9866b

Browse files
fixed unscrollable code block (docker#3397)
Signed-off-by: Victoria Bialas <[email protected]>
1 parent d802df2 commit 0a9866b

File tree

1 file changed

+21
-14
lines changed

1 file changed

+21
-14
lines changed

machine/get-started.md

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,18 @@ For machines other than `default`, and commands other than those listed above, y
286286

287287
## Unset environment variables in the current shell
288288

289-
You might want to use the current shell to connect to a different Docker Engine. This would be the case if, for example, you are [running Docker for Mac concurrent with Docker Toolbox](/docker-for-mac/docker-toolbox.md) and want to talk to two different Docker Engines, or running swarms on Docker Cloud and want to [switch between managing the swarm and using Docker hosts](/docker-cloud/cloud-swarm/connect-to-swarm.md#switch-between-your-swarm-and-docker-hosts-in-the-same-shell). In both scenarios, you have the option to switch the environment for the current shell to talk to different Docker engines.
289+
You might want to use the current shell to connect to a different Docker Engine.
290+
This would be the case if, for example, you are [running Docker for Mac
291+
concurrent with Docker Toolbox](/docker-for-mac/docker-toolbox.md) and want to
292+
talk to two different Docker Engines, or running swarms on Docker Cloud and want
293+
to [switch between managing the swarm and using Docker
294+
hosts](/docker-cloud/cloud-swarm/connect-to-swarm.md#switch-between-your-swarm-and-docker-hosts-in-the-same-shell).
295+
In both scenarios, you have the option to switch the environment for the current
296+
shell to talk to different Docker engines.
290297

291298
1. Run `env|grep DOCKER` to check whether DOCKER environment variables are set.
292299

293-
```
300+
```none
294301
$ env | grep DOCKER
295302
DOCKER_HOST=tcp://192.168.99.100:2376
296303
DOCKER_MACHINE_NAME=default
@@ -304,26 +311,26 @@ You might want to use the current shell to connect to a different Docker Engine.
304311
305312
* Run the `unset` command on the following `DOCKER` environment variables.
306313
307-
```
314+
```none
308315
unset DOCKER_TLS_VERIFY
309316
unset DOCKER_CERT_PATH
310317
unset DOCKER_MACHINE_NAME
311318
unset DOCKER_HOST
312319
```
313320
314-
* Alternatively, run a shortcut command `docker-machine env -u` to show the command you need to run to unset all DOCKER variables:
321+
* Alternatively, run a shortcut command `docker-machine env -u` to show the command you need to run to unset all DOCKER variables:
315322
316-
```
317-
$ docker-machine env -u
318-
unset DOCKER_TLS_VERIFY
319-
unset DOCKER_HOST
320-
unset DOCKER_CERT_PATH
321-
unset DOCKER_MACHINE_NAME
322-
# Run this command to configure your shell:
323-
# eval $(docker-machine env -u)
324-
```
323+
```none
324+
$ docker-machine env -u
325+
unset DOCKER_TLS_VERIFY
326+
unset DOCKER_HOST
327+
unset DOCKER_CERT_PATH
328+
unset DOCKER_MACHINE_NAME
329+
# Run this command to configure your shell:
330+
# eval $(docker-machine env -u)
331+
```
325332
326-
Run `eval $(docker-machine env -u)` to unset all DOCKER variables in the current shell.
333+
Run `eval $(docker-machine env -u)` to unset all DOCKER variables in the current shell.
327334
328335
3. Now, after running either of the above commands, this command should return no output.
329336

0 commit comments

Comments
 (0)