1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
$ docker-machine version
docker-machine version 0.16.0, build 702c267f
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL SWARM DOCKER ERRORS
node1 - virtualbox Running tcp://192.168.99.100:2376 v18.09.0
$ docker-machine stop node1
Stopping "node1"...
Machine "node1" was stopped.
$ docker-machine start node1
Starting "node1"...
(node1) Check network to re-create if needed...
(node1) Waiting for an IP...
Machine "node1" was started.
Waiting for SSH to be available...
Detecting the provisioner...
Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
$ eval $(docker-machine env node1)
$ docker-machine ssh node1
$ docker-machine ip node1
192.168.99.100 #主机IP
|