Files
docker-docs/machine/reference/active.md
Usha Mandya a247c105f7 Update the metadata and keywords for SEO (#10030)
Updated the metadata and keywords for seo
2019-12-13 15:27:59 +00:00

554 B

description, keywords, title, hide_from_sitemap
description keywords title hide_from_sitemap
Identify active machines machine, active, subcommand docker-machine active true

See which machine is "active" (a machine is considered active if the DOCKER_HOST environment variable points to it).

$ docker-machine ls

NAME      ACTIVE   DRIVER         STATE     URL
dev       -        virtualbox     Running   tcp://192.168.99.103:2376
staging   *        digitalocean   Running   tcp://203.0.113.81:2376

$ echo $DOCKER_HOST
tcp://203.0.113.81:2376

$ docker-machine active
staging