mirror of
https://github.com/docker/docs.git
synced 2026-03-28 06:49:00 +07:00
This allows for easier copying of the commands, without selecting the prompt. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
534 B
534 B
description, keywords, title
| description | keywords | title |
|---|---|---|
| Identify active machines | machine, active, subcommand | docker-machine active |
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