Files
docker-docs/machine/reference/active.md
Sebastiaan van Stijn 26926972ea machine: handle indexing through config
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-21 15:32:17 +02:00

23 lines
531 B
Markdown

---
description: Identify active machines
keywords: machine, active, subcommand
title: docker-machine active
---
See which machine is "active" (a machine is considered active if the
`DOCKER_HOST` environment variable points to it).
```bash
$ 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
```