By saving a remote endpoint as a context, you can quickly shift between talking to multiple different clusters or individual nodes in a single line command. For instance, if you have a test cluster, you can save the remote endpoint in a context called “test” and then run docker -c test ps from your local CLI. This will run the ps command on the test cluster endpoint, bypassing the need to change environment variables, or SSH into the test server. To immediately compare your test cluster with a prod cluster, all you would need to do is create another context for production, and you can switch to the context with the docker context use command, or just switch for a one off command like we did before using the -c option, with docker -c prod <docker command>. Also, these contexts can talk to more than just one type of cluster. In the blog post below, Ajeet has 3 contexts saved of a Swarm cluster, a Kubernetes cluster, and a play-with-docker cluster.