7,540
edits
Changes
Docker
,→List
<br>
===List/Inspect===
Whit the '''ls''' subcommand we can list all the docker-machine managed hosts.
<pre>
* URL: The IP address of the virtual host.
* SWARM:
With the '''inspect <machine name>''' subcommand we can get very detailed information about a specific machine:
<pre>
# docker-machine inspect manager
{
"ConfigVersion": 3,
"Driver": {
"IPAddress": "",
"MachineName": "manager",
"SSHUser": "docker",
"SSHPort": 22,
"SSHKeyPath": "",
"StorePath": "/root/.docker/machine",
"SwarmMaster": false,
"SwarmHost": "tcp://0.0.0.0:3376",
"SwarmDiscovery": "",
"Memory": 1024,
"DiskSize": 20000,
"CPU": 1,
"Network": "docker-network",
"PrivateNetwork": "docker-machines",
"ISO": "/root/.docker/machine/machines/manager/boot2docker.iso",
...
},
"DriverName": "kvm",
"HostOptions": {
...
...
"Name": "manager"
}
</pre>
<br>