new machine()
- Source:
Methods
(static) connectionInfo(machineName) → {promise}
Gets the connection info for a docker machine
Parameters:
Name | Type | Description |
---|---|---|
machineName |
string | The name of the docker machine |
- Source:
Returns:
Q Promise
{
host:
port:
protocol:
ca:
cert:
key:
}
- Type
- promise
(static) create(machineName, settingsopt) → {promise}
Creates a docker machine
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
machineName |
string | The name of the docker machine | |
settings |
object |
<optional> |
The settings for creating the docker machine |
- Default Value:
- Settings
{ driver: 'virtualbox' }
- Settings
- Source:
Returns:
Q Promise
- Type
- promise
(static) exists(machineName) → {promise}
Checks if a docker machine exists
Parameters:
Name | Type | Description |
---|---|---|
machineName |
string | The name of the docker machine |
- Source:
Returns:
Q Promise -> true or false
- Type
- promise
(static) exists(machineName) → {promise}
Checks if a docker machine exists
Parameters:
Name | Type | Description |
---|---|---|
machineName |
string | The name of the docker machine |
- Source:
Returns:
Q Promise -> true or false
- Type
- promise
(static) ipAddress(machineName, mapNameopt) → {promise}
Adds an entry to the global.dockerMachineIP map
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
machineName |
string | The name of the docker machine | ||
mapName |
string |
<optional> |
machineName | Map identifier |
- Source:
Returns:
Q Promise -> IP Address
- Type
- promise
(static) regenerateCerts(machineName) → {promise}
Regenerates docker machine certificates
Parameters:
Name | Type | Description |
---|---|---|
machineName |
string | The name of the docker machine |
- Source:
Returns:
Q Promise
- Type
- promise
(static) restart(machineName) → {promise}
Starts a docker machine
Parameters:
Name | Type | Description |
---|---|---|
machineName |
string | The name of the docker machine |
- Source:
Returns:
Q Promise
- Type
- promise
(static) start(machineName) → {promise}
Starts a docker machine
Parameters:
Name | Type | Description |
---|---|---|
machineName |
string | The name of the docker machine |
- Source:
Returns:
Q Promise
- Type
- promise