docker-machine active

active

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

1
2
3
4
5
6
7
8
$ 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
$ docker-machine active
staging
doc_docker
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.