diff --git a/docker-cloud/cloud-swarm/connect-to-swarm.md b/docker-cloud/cloud-swarm/connect-to-swarm.md
index 12053366c4..45ae2e8ad1 100644
--- a/docker-cloud/cloud-swarm/connect-to-swarm.md
+++ b/docker-cloud/cloud-swarm/connect-to-swarm.md
@@ -67,7 +67,37 @@ local Docker instance, which connects to a manager node on the target swarm.
7. Now that your swarm is set up, try out the example to [deploy a service to the swarm](/engine/swarm/swarm-tutorial/deploy-service/),
and other subsequent tasks in the Swarm getting started tutorial.
-> **Note**: To switch back to Docker hosts you can either run the `export` command again to overwrite it, or use `unset DOCKER_HOST`. If you are using Docker Machine, be sure to unset `DOCKER_TLS_VERIFY` as described in the [known issues](https://github.com/moby/mobycloud-federation#known-issues).
+## Switch between your swarm and Docker hosts in the same shell
+
+To switch to Docker hosts:
+
+* If you are running Docker for Mac or Docker for Windows, and want to connect to the Docker Engine for those apps, run `docker-machine env -u` as a preview, then run the unset command: `eval $(docker-machine env -u)`. For example:
+
+ ```
+ $ docker-machine env -u
+ unset DOCKER_TLS_VERIFY
+ unset DOCKER_HOST
+ unset DOCKER_CERT_PATH
+ unset DOCKER_MACHINE_NAME
+ # Run this command to configure your shell:
+ # eval $(docker-machine env -u)
+ ```
+
+* If you are using Docker Machine, and want to switch to one of your local VMs, be sure to unset `DOCKER_TLS_VERIFY`. Best practice is similar to the previous step. Run `docker-machine env -u` as a preview, then run the unset command: `eval $(docker-machine env -u)`. Follow this with `docker machine ls` to view your current machines, then connect to the one you want with `docker-machine env my-local-machine` and run the given `eval` command. For example:
+
+ ```
+ $ docker-machine env my-local-machine
+ export DOCKER_TLS_VERIFY="1"
+ export DOCKER_HOST="tcp://192.168.99.100:2376"
+ export DOCKER_CERT_PATH="/Users/victoriabialas/.docker/machine/machines/my-local-machine"
+ export DOCKER_MACHINE_NAME="my-local-machine"
+ # Run this command to configure your shell:
+ # eval $(docker-machine env my-local-machine)
+ ```
+
+To switch back to the deployed swarm, re-run the `export DOCKER_HOST` command with the connection port for the swarm you want to work with. (For example, `export DOCKER_HOST=tcp://127.0.0.1:32770`)
+
+To learn more, see [Unset environment variables in the current shell](/machine/get-started/#unset-environment-variables-in-the-current-shell).
## Reconnect a swarm
diff --git a/docker-cloud/cloud-swarm/create-cloud-swarm-azure.md b/docker-cloud/cloud-swarm/create-cloud-swarm-azure.md
index e552445dc0..9c97314eb3 100644
--- a/docker-cloud/cloud-swarm/create-cloud-swarm-azure.md
+++ b/docker-cloud/cloud-swarm/create-cloud-swarm-azure.md
@@ -94,7 +94,7 @@ Subscription you want to use.
> **Note**: At this time, you cannot add nodes to a swarm from
within Docker Cloud. To add new nodes to an existing swarm,
- log in to your AWS account, and add nodes manually. (You can
+ log in to your Azure account, and add nodes manually. (You can
unregister or dissolve swarms directly from Docker Cloud.)
## Where to go next
diff --git a/docker-cloud/cloud-swarm/link-aws-swarm.md b/docker-cloud/cloud-swarm/link-aws-swarm.md
index 11ae12994e..24ae9e7dbf 100644
--- a/docker-cloud/cloud-swarm/link-aws-swarm.md
+++ b/docker-cloud/cloud-swarm/link-aws-swarm.md
@@ -94,7 +94,7 @@ Cloud to connect the account.

-You're now ready to deploy a swarm!
+You are now ready to deploy a swarm!
## Where to go next
diff --git a/docker-cloud/cloud-swarm/link-azure-swarm.md b/docker-cloud/cloud-swarm/link-azure-swarm.md
index 162c9c2b3f..971becaad2 100644
--- a/docker-cloud/cloud-swarm/link-azure-swarm.md
+++ b/docker-cloud/cloud-swarm/link-azure-swarm.md
@@ -38,26 +38,19 @@ Go to Docker Cloud to connect the account.

-3. Provide your subscription ID.
+3. Provide your subscription ID and click **Save**.
- You will be redirected to [Azure Cloud Services](portal.azure.com).
-
-4. Log in to your Azure account.
-
-5. Click **Accept** to grant Docker Cloud access to your Microsoft Azure account.
-
- 
-
-6. Your Microsoft Azure login credentials will automatically populate to
-Docker Cloud under **Service Providers -> Microsoft Azure**.
+ This grants Docker Cloud access to your Microsoft Azure account, and links
+ the two accounts. Your Azure login credentials will automatically populate
+ to Docker Cloud under **Service Providers -> Microsoft Azure**.

-7. Click **Save**.
-
## Enable your Azure subscription for Docker Cloud
-You need to verify Microsoft Azure terms of use and manually enable your Azure subscription on behalf of Docker Cloud.
+You need to verify Microsoft Azure terms of use and manually enable your Azure subscription on behalf of Docker Cloud. You need do this only once, before you attempt to deploy a Docker Cloud Microsoft Azure swarm for the first time.
+
+>**Tip:** If your Azure subscription is not enabled first, the swarm deployment will fail. The error will show up on your **Azure portal -> resource groups -> _ResourceGroupForYourSwarm_ -> deployments**.
1. Go to the [Microsoft Azure Marketplace](https://portal.azure.com/#blade/Microsoft_Azure_Marketplace/GalleryFeaturedMenuItemBlade/selectedMenuItemId/home) and search for **Docker**, or specifically **Docker for Azure CE**.
@@ -77,7 +70,7 @@ You need to verify Microsoft Azure terms of use and manually enable your Azure s

-You're now ready to deploy a swarm!
+You are now ready to deploy a swarm!
## Where to go next
diff --git a/docker-for-mac/docker-toolbox.md b/docker-for-mac/docker-toolbox.md
index 00de0d7463..b64ceb14b3 100644
--- a/docker-for-mac/docker-toolbox.md
+++ b/docker-for-mac/docker-toolbox.md
@@ -6,13 +6,23 @@ redirect_from:
title: Docker for Mac vs. Docker Toolbox
---
-If you already have an installation of Docker Toolbox, please read these topics first to learn how Docker for Mac and Docker Toolbox differ, and how they can coexist.
+If you already have an installation of Docker Toolbox, please read these topics
+first to learn how Docker for Mac and Docker Toolbox differ, and how they can
+coexist.
## The Docker Toolbox environment
-Docker Toolbox installs `docker`, `docker-compose` and `docker-machine` in `/usr/local/bin` on your Mac. It also installs VirtualBox. At installation time, Toolbox uses `docker-machine` to provision a VirtualBox VM called `default`, running the `boot2docker` Linux distribution, with [Docker Engine](/engine/) with certificates located on your Mac at `$HOME/.docker/machine/machines/default`.
+Docker Toolbox installs `docker`, `docker-compose` and `docker-machine` in
+`/usr/local/bin` on your Mac. It also installs VirtualBox. At installation time,
+Toolbox uses `docker-machine` to provision a VirtualBox VM called `default`,
+running the `boot2docker` Linux distribution, with [Docker Engine](/engine/)
+with certificates located on your Mac at
+`$HOME/.docker/machine/machines/default`.
-Before you use `docker` or `docker-compose` on your Mac, you typically use the command `eval $(docker-machine env default)` to set environment variables so that `docker` or `docker-compose` know how to talk to Docker Engine running on VirtualBox.
+Before you use `docker` or `docker-compose` on your Mac, you typically use the
+command `eval $(docker-machine env default)` to set environment variables so
+that `docker` or `docker-compose` know how to talk to Docker Engine running on
+VirtualBox.
This setup is shown in the following diagram.
@@ -21,11 +31,14 @@ This setup is shown in the following diagram.
## The Docker for Mac environment
-Docker for Mac is a Mac native application, that you install in `/Applications`. At installation time, it creates symlinks in `/usr/local/bin` for `docker` and `docker-compose`, to the version of the commands inside the Mac application bundle, in `/Applications/Docker.app/Contents/Resources/bin`.
+Docker for Mac is a Mac native application, that you install in `/Applications`.
+At installation time, it creates symlinks in `/usr/local/bin` for `docker` and
+`docker-compose`, to the version of the commands inside the Mac application
+bundle, in `/Applications/Docker.app/Contents/Resources/bin`.
Here are some key points to know about Docker for Mac before you get started:
-* Docker for Mac does not use VirtualBox, but rather HyperKit, a lightweight macOS virtualization solution built on top of Hypervisor.framework in macOS 10.10 Yosemite and higher.
+* Docker for Mac does not use VirtualBox, but rather [HyperKit](https://github.com/docker/HyperKit/, a lightweight macOS virtualization solution built on top of Hypervisor.framework in macOS 10.10 Yosemite and higher.
* Installing Docker for Mac does not affect machines you created with Docker Machine. The install offers to copy containers and images from your local `default` machine (if one exists) to the new Docker for Mac HyperKit VM. If chosen, content from `default` is copied to the new Docker for Mac HyperKit VM, and your original `default` machine is kept as is.
@@ -37,9 +50,14 @@ This setup is shown in the following diagram.

-With Docker for Mac, you get only one VM, and you don't manage it. It is managed by the Docker for Mac application, which includes autoupdate to update the client and server versions of Docker.
+With Docker for Mac, you get only one VM, and you don't manage it. It is managed
+by the Docker for Mac application, which includes autoupdate to update the
+client and server versions of Docker.
-If you need several VMs and want to manage the version of the Docker client or server you are using, you can continue to use `docker-machine`, on the same machine, as described in [Docker Toolbox and Docker for Mac coexistence](docker-toolbox.md#docker-toolbox-and-docker-for-mac-coexistence).
+If you need several VMs and want to manage the version of the Docker client or
+server you are using, you can continue to use `docker-machine`, on the same
+machine, as described in [Docker Toolbox and Docker for Mac
+coexistence](docker-toolbox.md#docker-toolbox-and-docker-for-mac-coexistence).
## Setting up to run Docker for Mac
@@ -67,17 +85,30 @@ If you need several VMs and want to manage the version of the Docker client or s
$ env | grep DOCKER
- If you are using a Bash shell, you can use `unset ${!DOCKER_*}` to unset all DOCKER environment variables at once. (This will not work in other shells such as `zsh`; you will need to unset each variable individually.)
+ If you are using a Bash shell, you can use `unset ${!DOCKER_*}` to unset all
+DOCKER environment variables at once. (This will not work in other shells such
+as `zsh`; you will need to unset each variable individually.)
>**Note**: If you have a shell script as part of your profile that sets these `DOCKER` environment variables automatically each time you open a command window, then you will need to unset these each time you want to use Docker for Mac.
-> **Warning**:
-> If you install Docker for Mac on a machine where Docker Toolbox is installed, it will replace the `docker` and `docker-compose` command lines in `/usr/local/bin` with symlinks to its own versions.
+> If you install Docker for Mac on a machine where Docker Toolbox is installed..
+>
+> Docker for Mac will replace the `docker` and `docker-compose` command lines in `/usr/local/bin` with symlinks to its own versions.
{:.warning}
+See also [Unset environment variables in the current
+shell](/machine/get-started.md#unset-environment-variables-in-the-current-shell)
+in the Docker Machine topics.
+
## Docker Toolbox and Docker for Mac coexistence
-You can use Docker for Mac and Docker Toolbox together on the same machine. When you want to use Docker for Mac, make sure all DOCKER environment variables are unset. You can do this in bash with `unset ${!DOCKER_*}`. When you want to use one of the VirtualBox VMs you have set with `docker-machine`, just run a `eval $(docker-machine env default)` (or the name of the machine you want to target). This will switch the current command shell to talk to the specified Toolbox machine.
+You can use Docker for Mac and Docker Toolbox together on the same machine. When
+you want to use Docker for Mac, make sure all DOCKER environment variables are
+unset. You can do this in bash with `unset ${!DOCKER_*}`. When you want to use
+one of the VirtualBox VMs you have set with `docker-machine`, just run a `eval
+$(docker-machine env default)` (or the name of the machine you want to target).
+This will switch the current command shell to talk to the specified Toolbox
+machine.
This setup is represented in the following diagram.
@@ -86,14 +117,25 @@ This setup is represented in the following diagram.
## Using different versions of Docker tools
-The coexistence setup works as is as long as your VirtualBox VMs provisioned with `docker-machine` run the same version of Docker Engine as Docker for Mac. If you need to use VMs running older versions of Docker Engine, you can use a tool like Docker Version Manager to manage several versions of docker client.
+The coexistence setup works as is as long as your VirtualBox VMs provisioned
+with `docker-machine` run the same version of Docker Engine as Docker for Mac.
+If you need to use VMs running older versions of Docker Engine, you can use a
+tool like [Docker Version Manager](https://github.com/getcarina/dvm) to manage
+several versions of docker client.
### Checking component versions
-Ideally, the Docker CLI client and Docker Engine should be the same version. Mismatches between client and server, and among host machines you might have created with Docker Machine can cause problems (client can't talk to the server or host machines).
+Ideally, the Docker CLI client and Docker Engine should be the same version.
+Mismatches between client and server, and among host machines you might have
+created with Docker Machine can cause problems (client can't talk to the server
+or host machines).
-If you already have Docker Toolbox installed, and then install Docker for Mac, you might get a newer version of the Docker client. Run `docker version` in a command shell to see client and server versions. In this example, the client installed with Docker for Mac is `Version: 1.11.1` and the server (which was installed earlier with Toolbox) is Version: 1.11.0.
+If you already have [Docker Toolbox](/toolbox/overview/) installed, and then
+install Docker for Mac, you might get a newer version of the Docker client. Run
+`docker version` in a command shell to see client and server versions. In this
+example, the client installed with Docker for Mac is `Version: 1.11.1` and the
+server (which was installed earlier with Toolbox) is Version: 1.11.0.
$ docker version
Client:
@@ -104,7 +146,11 @@ If you already have Docker Toolbox<
Version: 1.11.0
...
-Also, if you created machines with Docker Machine (installed with Toolbox) then upgraded or installed Docker for Mac, you might have machines running different versions of Engine. Run `docker-machine ls` to view version information for the machines you created. In this example, the DOCKER column shows that each machine is running a different version of server.
+Also, if you created machines with Docker Machine (installed with Toolbox) then
+upgraded or installed Docker for Mac, you might have machines running different
+versions of Engine. Run `docker-machine ls` to view version information for the
+machines you created. In this example, the DOCKER column shows that each machine
+is running a different version of server.
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
@@ -114,7 +160,7 @@ Also, if you created machines with Docker Machine (installed with Toolbox) then
You might also run into a similar situation with Docker Universal Control Plan (UCP).
-There are a few ways to address this problem and keep using your older machines. One solution is to use a version manager like DVM.
+There are a few ways to address this problem and keep using your older machines. One solution is to use a version manager like [DVM](https://github.com/getcarina/dvm).
## How do I uninstall Docker Toolbox?
diff --git a/machine/examples/aws.md b/machine/examples/aws.md
index 7caccbb962..941d816cc7 100644
--- a/machine/examples/aws.md
+++ b/machine/examples/aws.md
@@ -4,11 +4,11 @@ keywords: docker, machine, cloud, aws
title: Amazon Web Services (AWS) EC2 example
---
-Follow along with this example to create a Dockerized Amazon Web Services (AWS) EC2 instance.
+Follow along with this example to create a Dockerized [Amazon Web Services (AWS)](https://aws.amazon.com/) EC2 instance.
### Step 1. Sign up for AWS and configure credentials
-1. If you are not already an AWS user, sign up for AWS to create an account and get root access to EC2 cloud computers.
+1. If you are not already an AWS user, sign up for [AWS](https://aws.amazon.com/) to create an account and get root access to EC2 cloud computers.
If you have an Amazon account, you can use it as your root user account.
@@ -22,7 +22,7 @@ Follow along with this example to create a Dockerized Setting Up with Amazon EC2. Follow the steps for "Create an IAM User" and "Create a Key Pair".
+ See the AWS documentation on [Setting Up with Amazon EC2](http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/get-set-up-for-amazon-ec2.html). Follow the steps for "Create an IAM User" and "Create a Key Pair".
### Step 2. Use Machine to create the instance
@@ -70,7 +70,7 @@ Follow along with this example to create a Dockerized Digital Ocean Droplet (cloud host).
+Follow along with this example to create a Dockerized [Digital Ocean](https://digitalocean.com) Droplet (cloud host).
### Step 1. Create a Digital Ocean account
-If you have not done so already, go to Digital Ocean, create an account, and log in.
+If you have not done so already, go to [Digital Ocean](https://digitalocean.com), create an account, and log in.
### Step 2. Generate a personal access token
@@ -70,7 +70,7 @@ To generate your access token:
default - virtualbox Running tcp://192.168.99.100:2376
docker-sandbox * digitalocean Running tcp://45.55.139.48:2376
- The new `docker-sandbox` machine is running, and it is the active host as indicated by the asterisk (*). When you create a new machine, your command shell automatically connects to it. If for some reason your new machine is not the active host, you'll need to run `docker-machine env docker-sandbox`, followed by `eval $(docker-machine env docker-sandbox)` to connect to it.
+ The new `docker-sandbox` machine is running, and it is the active host as indicated by the asterisk (\*). When you create a new machine, your command shell automatically connects to it. If for some reason your new machine is not the active host, you'll need to run `docker-machine env docker-sandbox`, followed by `eval $(docker-machine env docker-sandbox)` to connect to it.
### Step 4. Run Docker commands on the Droplet
@@ -136,4 +136,4 @@ If you create a host with Docker Machine, but remove it through the cloud provid
- [Understand Machine concepts](../concepts.md)
- [Docker Machine driver reference](../drivers/index.md)
- [Docker Machine subcommand reference](../reference/index.md)
-- [Provision a Docker Swarm cluster with Docker Machine](/swarm/provision-with-machine.md)
\ No newline at end of file
+- [Provision a Docker Swarm cluster with Docker Machine](/swarm/provision-with-machine.md)
diff --git a/machine/get-started.md b/machine/get-started.md
index be73623fc6..5106aab0e5 100644
--- a/machine/get-started.md
+++ b/machine/get-started.md
@@ -12,12 +12,16 @@ Docker host inside of a local virtual machine.
With the advent of [Docker for Mac](/docker-for-mac/index.md) and [Docker for
Windows](/docker-for-windows/index.md) as replacements for [Docker
Toolbox](/toolbox/overview.md), we recommend that you use these for your primary
-Docker workflows. You can use these applications to run Docker natively on your local system without using Docker Machine at all. (See [Docker for Mac vs. Docker Toolbox](/docker-for-mac/docker-toolbox.md) for an explanation on the Mac side.)
+Docker workflows. You can use these applications to run Docker natively on your
+local system without using Docker Machine at all. (See [Docker for Mac vs.
+Docker Toolbox](/docker-for-mac/docker-toolbox.md) for an explanation on the Mac
+side.)
-However, if you want to create _multiple_ local machines, you need Docker Machine, which is still available to create and manage machines for
-power users or multi-node experimentation. Both Docker for Mac and Docker for
-Windows include the newest version of Docker Machine, so when you install either
-of these, you get `docker-machine`.
+For now, however, if you want to create _multiple_ local machines, you still
+need Docker Machine to create and manage machines for multi-node
+experimentation. Both Docker for Mac and Docker for Windows include the newest
+version of Docker Machine, so when you install either of these, you get
+`docker-machine`.
The new solutions come with their own native virtualization solutions rather
than Oracle VirtualBox, so keep the following considerations in mind when using
@@ -33,10 +37,12 @@ Docker for Windows uses [Microsoft
Hyper-V](https://msdn.microsoft.com/en-us/virtualization/hyperv_on_windows/windows_welcome)
for virtualization, and Hyper-V is not compatible with Oracle VirtualBox.
Therefore, you cannot run the two solutions simultaneously. But you can still
-use `docker-machine` to create more local VMs by using the Microsoft Hyper-V driver.
+use `docker-machine` to create more local VMs by using the Microsoft Hyper-V
+driver.
-* If you are using Docker for Windows, the only prerequisite is to have Docker for Windows installed. If you want to create multiple local machines, use the Microsoft `hyperv` driver to create them. (See the [Docker Machine driver for Microsoft
-Hyper-V](drivers/hyper-v.md).)
+* The only prerequisite is to have Docker for Windows installed. If you want to create multiple local machines, use the
+Microsoft `hyperv` driver to create them. (See the [Docker Machine driver for
+Microsoft Hyper-V](drivers/hyper-v.md).)
#### If you are using Docker for Mac
@@ -61,15 +67,14 @@ Docker for Mac and Docker for Windows both require newer versions of their
respective operating systems, so users with older OS versions must use Docker
Toolbox.
-* If you are using Docker Toolbox on either Mac or an older version Windows system
- (without Hyper-V), you will use the `virtualbox` driver to create a local
- machine based on Oracle [VirtualBox(https://www.virtualbox.org/){: target="_blank" class="_"}.
- (See the [Docker Machine driver for Oracle VirtualBox](drivers/virtualbox.md).)
+* If you are using Docker Toolbox on either Mac or an older version Windows system (without Hyper-V), you will use the `virtualbox` driver to create a local
+machine based on Oracle [VirtualBox](https://www.virtualbox.org/){:
+target="_blank" class="_"}. (See the [Docker Machine driver for Oracle
+VirtualBox](drivers/virtualbox.md).)
-* If you are using Docker Toolbox on a Windows system that has Hyper-V but cannot
- run Docker for Windows (for example Windows 8 Pro), you must use the
- `hyperv` driver to create local machines. (See the
- [Docker Machine driver for Microsoft Hyper-V](drivers/hyper-v.md).)
+* If you are using Docker Toolbox on a Windows system that has Hyper-V but cannot run Docker for Windows (for example Windows 8 Pro), you must use the
+`hyperv` driver to create local machines. (See the [Docker Machine driver for
+Microsoft Hyper-V](drivers/hyper-v.md).)
* Make sure you have [the latest VirtualBox](https://www.virtualbox.org/wiki/Downloads){: target="_blank" class="_"}
correctly installed on your system. If you used
@@ -168,7 +173,10 @@ choose another name for this new machine.
Instead, see [the `env` command's documentation](/machine/reference/env.md){: target="_blank" class="_"}
to learn how to set the environment variables for your shell.
- This sets environment variables for the current shell that the Docker client will read which specify the TLS settings. You need to do this each time you open a new shell or restart your machine.
+ This sets environment variables for the current shell that the Docker
+ client will read which specify the TLS settings. You need to do this
+ each time you open a new shell or restart your machine. (See also, how to
+ [unset environment variables in the current shell](/machine/get-started.md#unset-environment-variables-in-the-current-shell).)
You can now run Docker commands on this host.
@@ -276,6 +284,64 @@ Commands that follow this style are:
For machines other than `default`, and commands other than those listed above, you must always specify the name explicitly as an argument.
+## Unset environment variables in the current shell
+
+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.
+
+1. Run `env|grep DOCKER` to check whether DOCKER environment variables are set.
+
+ ```
+ $ env | grep DOCKER
+ DOCKER_HOST=tcp://192.168.99.100:2376
+ DOCKER_MACHINE_NAME=default
+ DOCKER_TLS_VERIFY=1
+ DOCKER_CERT_PATH=/Users/victoriabialas/.docker/machine/machines/default
+ ```
+
+ If it returns output (as shown in the example), you can unset the `DOCKER` environment variables.
+
+2. Use one of two methods to unset DOCKER environment variables in the current shell.
+
+ * Run the `unset` command on the following `DOCKER` environment variables.
+
+ ```
+ unset DOCKER_TLS_VERIFY
+ unset DOCKER_CERT_PATH
+ unset DOCKER_MACHINE_NAME
+ unset DOCKER_HOST
+ ```
+
+ * Alternatively, run a shortcut command `docker-machine env -u` to show the command you need to run to unset all DOCKER variables:
+
+ ```
+ $ docker-machine env -u
+ unset DOCKER_TLS_VERIFY
+ unset DOCKER_HOST
+ unset DOCKER_CERT_PATH
+ unset DOCKER_MACHINE_NAME
+ # Run this command to configure your shell:
+ # eval $(docker-machine env -u)
+ ```
+
+ Run `eval $(docker-machine env -u)` to unset all DOCKER variables in the current shell.
+
+3. Now, after running either of the above commands, this command should return no output.
+
+ ```
+ $ env | grep DOCKER
+ ```
+
+ If you are running Docker for Mac, you can run Docker commands to talk
+ to the Docker Engine installed with that app.
+
+ If you are running swarms on Docker Cloud, you can re-run the `export`
+ command you used to connect to the swarm.
+
+ Since [Docker for Windows is incompatible with
+ Toolbox](/docker-for-windows/install.md#what-to-know-before-you-install),
+ this scenario isn't applicable because Docker for Windows uses the Docker
+ Engine and Docker Machine that come with it.
+
## Start local machines on startup
In order to ensure that the Docker client is automatically configured at the
diff --git a/machine/reference/env.md b/machine/reference/env.md
index 4eaa6c17c9..50dfe38cc8 100644
--- a/machine/reference/env.md
+++ b/machine/reference/env.md
@@ -89,6 +89,8 @@ set DOCKER_MACHINE_NAME=dev
# Run this command to configure your shell: copy and paste the above values into your command prompt
```
+>**Tip:** See also, how to [unset environment variables in the current shell](/machine/get-started.md#unset-environment-variables-in-the-current-shell).
+
## Excluding the created machine from proxies
The env command supports a `--no-proxy` flag which will ensure that the created
@@ -112,4 +114,4 @@ export NO_PROXY="192.168.99.104"
You may also want to visit the [documentation on setting `HTTP_PROXY` for the
created daemon using the `--engine-env` flag for `docker-machine
-create`](/machine/reference/create.md#specifying-configuration-options-for-the-created-docker-engine).
\ No newline at end of file
+create`](/machine/reference/create.md#specifying-configuration-options-for-the-created-docker-engine).