@ -1,38 +1,38 @@
page_title: Working with Docker Machine
page_title: Working with Docker Machine
page_description: Working with Docker Machine
page_description: Working with Docker Machine
page_keywords: docker, machine, virtualbox, digitalocean, amazonec2
page_keywords: docker, machine, virtualbox, digitalocean, amazonec2
# Working with Docker Machine
# Working with Docker Machine
## Overview
## Overview
In order to run Docker containers, you must have a
In order to run Docker containers, you must have a
[Docker daemon ](https://docs.docker.com/arch ) running somewhere. If you’ re on a
[Docker daemon ](https://docs.docker.com/arch ) running somewhere. If you’ re on a
Linux system and you want to run a container on your local machine, this is
Linux system and you want to run a container on your local machine, this is
straightforward: you run the daemon on your local machine and communicate with
straightforward: you run the daemon on your local machine and communicate with
it over the Unix socket located at `/var/run/docker.sock` (this all happens
it over the Unix socket located at `/var/run/docker.sock` (this all happens
behind the scenes when you run `docker` on the command line). However, if you
behind the scenes when you run `docker` on the command line). However, if you
want to control containers from Mac OSX / Windows or manage them on a remote
want to control containers from Mac OSX / Windows or manage them on a remote
server, you’ ll need to create a new machine (probably a virtual machine) with
server, you’ ll need to create a new machine (probably a virtual machine) with
Docker installed and execute Docker commands for that host remotely.
Docker installed and execute Docker commands for that host remotely.
Traditionally, the way to do this was either:
Traditionally, the way to do this was either:
- manual (open the web interface or virtualization application, make the machine
- manual (open the web interface or virtualization application, make the machine
yourself, manually install Docker, etc.) and therefore tedious and error-prone
yourself, manually install Docker, etc.) and therefore tedious and error-prone
- with existing automation technologies, which usually entail a quite high skill
- with existing automation technologies, which usually entail a quite high skill
threshold
threshold
Docker's [` machine`](https://github.com/docker/machine ) is a tool for making the
Docker's [` docker- machine`](https://github.com/docker/machine ) is a tool for making the
process of creating and managing those machines (and running Docker commands
process of creating and managing those machines (and running Docker commands
against them) much faster and easier for users. ` machine` allows users to
against them) much faster and easier for users. ` docker- machine` allows users to
quickly create running instances of the Docker daemon on local virtualization
quickly create running instances of the Docker daemon on local virtualization
platforms (e.g. Virtualbox) or on cloud providers (e.g. AWS EC2) that they can
platforms (e.g. Virtualbox) or on cloud providers (e.g. AWS EC2) that they can
connect to and control from their local Docker client binary.
connect to and control from their local Docker client binary.
## Installation
## Installation
Docker Machine is supported on Windows, OSX, and Linux. To install Docker
Docker Machine is supported on Windows, OSX, and Linux. To install Docker
Machine, download the appropriate binary for your OS and architecture to the
Machine, download the appropriate binary for your OS and architecture to the
correct place in your `PATH` :
correct place in your `PATH` :
- [Windows - x86_64]()
- [Windows - x86_64]()
@ -42,75 +42,75 @@ correct place in your `PATH`:
- [OSX - i386]()
- [OSX - i386]()
- [Linux - i386]()
- [Linux - i386]()
Now you should be able to check the version with ` machine -v`:
Now you should be able to check the version with ` docker- machine -v`:
```
```
$ machine -v
$ docker- machine -v
machine version 0.0.3
machine version 0.0.3
```
```
## Getting started with Docker Machine using a local VM
## Getting started with Docker Machine using a local VM
Let's take a look at using ` machine` to creating, using, and managing a Docker
Let's take a look at using ` docker- machine` to creating, using, and managing a Docker
host inside of [VirtualBox ](ihttps://www.virtualbox.org/ ).
host inside of [VirtualBox ](ihttps://www.virtualbox.org/ ).
First, ensure that
First, ensure that
[VirtualBox 4.3.20 ](https://www.virtualbox.org/wiki/Downloads ) is correctly
[VirtualBox 4.3.20 ](https://www.virtualbox.org/wiki/Downloads ) is correctly
installed on your system.
installed on your system.
If you run the ` machine ls` command to show all available machines, you will see
If you run the ` docker- machine ls` command to show all available machines, you will see
that none have been created so far.
that none have been created so far.
```
```
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
```
```
To create one, we run the ` machine create` command, passing the string
To create one, we run the ` docker- machine create` command, passing the string
`virtualbox` to the `--driver` flag. The final argument we pass is the name of
`virtualbox` to the `--driver` flag. The final argument we pass is the name of
the machine - in this case, we will name our machine "dev".
the machine - in this case, we will name our machine "dev".
This will download a lightweight Linux distribution
This will download a lightweight Linux distribution
([boot2docker](https://github.com/boot2docker/boot2docker)) with the Docker
([boot2docker](https://github.com/boot2docker/boot2docker)) with the Docker
daemon installed, and will create and start a VirtualBox VM with Docker running.
daemon installed, and will create and start a VirtualBox VM with Docker running.
```
```
$ machine create --driver virtualbox dev
$ docker- machine create --driver virtualbox dev
INFO[0000] Creating SSH key...
INFO[0000] Creating SSH key...
INFO[0000] Creating VirtualBox VM...
INFO[0000] Creating VirtualBox VM...
INFO[0007] Starting VirtualBox VM...
INFO[0007] Starting VirtualBox VM...
INFO[0007] Waiting for VM to start...
INFO[0007] Waiting for VM to start...
INFO[0038] "dev" has been created and is now the active machine
INFO[0038] "dev" has been created and is now the active machine
INFO[0038] To connect: docker $(machine config dev) ps
INFO[0038] To connect: docker $(docker- machine config dev) ps
```
```
You can see the machine you have created by running the ` machine ls` command
You can see the machine you have created by running the ` docker- machine ls` command
again:
again:
```
```
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
dev * virtualbox Running tcp://192.168.99.100:2375
dev * virtualbox Running tcp://192.168.99.100:2375
```
```
The `*` next to `dev` indicates that it is the active host.
The `*` next to `dev` indicates that it is the active host.
Next, as noted in the output of the ` machine create` command, we have to tell
Next, as noted in the output of the ` docker- machine create` command, we have to tell
Docker to talk to that machine. You can do this with the ` machine config`
Docker to talk to that machine. You can do this with the ` docker- machine config`
command. For example,
command. For example,
```
```
$ docker $(machine config dev) ps
$ docker $(docker- machine config dev) ps
```
```
This will pass arguments to the Docker client that specify the TLS settings.
This will pass arguments to the Docker client that specify the TLS settings.
To see what will be passed, run ` machine config dev`.
To see what will be passed, run ` docker- machine config dev`.
You can now run Docker commands on this host:
You can now run Docker commands on this host:
```
```
$ docker $(machine config dev) run busybox echo hello world
$ docker $(docker- machine config dev) run busybox echo hello world
Unable to find image 'busybox' locally
Unable to find image 'busybox' locally
Pulling repository busybox
Pulling repository busybox
e72ac664f4f0: Download complete
e72ac664f4f0: Download complete
@ -120,68 +120,68 @@ e433a6c5b276: Download complete
hello world
hello world
```
```
Any exposed ports are available on the Docker host’ s IP address, which you can
Any exposed ports are available on the Docker host’ s IP address, which you can
get using the ` machine ip` command:
get using the ` docker- machine ip` command:
```
```
$ machine ip
$ docker- machine ip
192.168.99.100
192.168.99.100
```
```
Now you can manage as many local VMs running Docker as you please- just run
Now you can manage as many local VMs running Docker as you please- just run
` machine create` again.
` docker- machine create` again.
If you are finished using a host, you can stop it with `docker stop` and start
If you are finished using a host, you can stop it with `docker stop` and start
it again with `docker start` :
it again with `docker start` :
```
```
$ machine stop
$ docker- machine stop
$ machine start
$ docker- machine start
```
```
If they aren't passed any arguments, commands such as ` machine stop` will run
If they aren't passed any arguments, commands such as ` docker- machine stop` will run
against the active host (in this case, the VirtualBox VM). You can also specify
against the active host (in this case, the VirtualBox VM). You can also specify
a host to run a command against as an argument. For instance, you could also
a host to run a command against as an argument. For instance, you could also
have written:
have written:
```
```
$ machine stop dev
$ docker- machine stop dev
$ machine start dev
$ docker- machine start dev
```
```
## Using Docker Machine with a cloud provider
## Using Docker Machine with a cloud provider
One of the nice things about ` machine` is that it provides several “drivers”
One of the nice things about ` docker- machine` is that it provides several “drivers”
which let you use the same interface to create hosts on many different cloud
which let you use the same interface to create hosts on many different cloud
platforms. This is accomplished by using the ` machine create` command with the
platforms. This is accomplished by using the ` docker- machine create` command with the
`--driver` flag. Here we will be demonstrating the
`--driver` flag. Here we will be demonstrating the
[Digital Ocean ](https://digitalocean.com ) driver (called `digitalocean` ), but
[Digital Ocean ](https://digitalocean.com ) driver (called `digitalocean` ), but
there are drivers included for several providers including Amazon Web Services,
there are drivers included for several providers including Amazon Web Services,
Google Compute Engine, and Microsoft Azure.
Google Compute Engine, and Microsoft Azure.
Usually it is required that you pass account verification credentials for these
Usually it is required that you pass account verification credentials for these
providers as flags to ` machine create`. These flags are unique for each driver.
providers as flags to ` docker- machine create`. These flags are unique for each driver.
For instance, to pass a Digital Ocean access token you use the
For instance, to pass a Digital Ocean access token you use the
`--digitalocean-access-token` flag.
`--digitalocean-access-token` flag.
Let's take a look at how to do this.
Let's take a look at how to do this.
To generate your access token:
To generate your access token:
1. Go to the Digital Ocean administrator panel and click on "Apps and API" in
1. Go to the Digital Ocean administrator panel and click on "Apps and API" in
the side panel.
the side panel.
2. Click on "Generate New Token".
2. Click on "Generate New Token".
3. Give the token a clever name (e.g. "machine"), make sure the "Write" checkbox
3. Give the token a clever name (e.g. "machine"), make sure the "Write" checkbox
is checked, and click on "Generate Token".
is checked, and click on "Generate Token".
4. Grab the big long hex string that is generated (this is your token) and store it somehwere safe.
4. Grab the big long hex string that is generated (this is your token) and store it somehwere safe.
Now, run ` machine create` with the `digitalocean` driver and pass your key to
Now, run ` docker- machine create` with the `digitalocean` driver and pass your key to
the `--digitalocean-access-token` flag.
the `--digitalocean-access-token` flag.
Example:
Example:
```
```
$ machine create \
$ docker- machine create \
--driver digitalocean \
--driver digitalocean \
--digitalocean-access-token 0ab77166d407f479c6701652cee3a46830fef88b8199722b87821621736ab2d4 \
--digitalocean-access-token 0ab77166d407f479c6701652cee3a46830fef88b8199722b87821621736ab2d4 \
staging
staging
@ -189,81 +189,81 @@ INFO[0000] Creating SSH key...
INFO[0000] Creating Digital Ocean droplet...
INFO[0000] Creating Digital Ocean droplet...
INFO[0002] Waiting for SSH...
INFO[0002] Waiting for SSH...
INFO[0085] "staging" has been created and is now the active machine
INFO[0085] "staging" has been created and is now the active machine
INFO[0085] To connect: docker $(machine config dev) staging
INFO[0085] To connect: docker $(docker- machine config dev) staging
```
```
For convenience, ` machine` will use sensible defaults for choosing settings such
For convenience, ` docker- machine` will use sensible defaults for choosing settings such
as the image that the VPS is based on, but they can also be overridden using
as the image that the VPS is based on, but they can also be overridden using
their respective flags (e.g. `--digitalocean-image` ). This is useful if, for
their respective flags (e.g. `--digitalocean-image` ). This is useful if, for
instance, you want to create a nice large instance with a lot of memory and CPUs
instance, you want to create a nice large instance with a lot of memory and CPUs
(by default ` machine` creates a small VPS). For a full list of the
(by default ` docker- machine` creates a small VPS). For a full list of the
flags/settings available and their defaults, see the output of
flags/settings available and their defaults, see the output of
` machine create -h`.
` docker- machine create -h`.
When the creation of a host is initiated, a unique SSH key for accessing the
When the creation of a host is initiated, a unique SSH key for accessing the
host (initially for provisioning, then directly later if the user runs the
host (initially for provisioning, then directly later if the user runs the
` machine ssh` command) will be created automatically and stored in the client's
` docker- machine ssh` command) will be created automatically and stored in the client's
directory in `~/.docker/machines` . After the creation of the SSH key, Docker
directory in `~/.docker/machines` . After the creation of the SSH key, Docker
will be installed on the remote machine and the daemon will be configured to
will be installed on the remote machine and the daemon will be configured to
accept remote connections over TCP using TLS for authentication. Once this
accept remote connections over TCP using TLS for authentication. Once this
is finished, the host is ready for connection.
is finished, the host is ready for connection.
And then from this point, the remote host behaves much like the local host we
And then from this point, the remote host behaves much like the local host we
created in the last section. If we look at ` machine`, we’ ll see it is now the
created in the last section. If we look at ` docker- machine`, we’ ll see it is now the
active host:
active host:
```
```
$ machine active dev
$ docker- machine active dev
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
dev virtualbox Running tcp://192.168.99.103:2375
dev virtualbox Running tcp://192.168.99.103:2375
staging * digitalocean Running tcp://104.236.50.118:2375
staging * digitalocean Running tcp://104.236.50.118:2375
```
```
To select an active host, you can use the ` machine active` command.
To select an active host, you can use the ` docker- machine active` command.
```
```
$ machine active dev
$ docker- machine active dev
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
dev * virtualbox Running tcp://192.168.99.103:2375
dev * virtualbox Running tcp://192.168.99.103:2375
staging digitalocean Running tcp://104.236.50.118:2375
staging digitalocean Running tcp://104.236.50.118:2375
```
```
To remove a host and all of its containers and images, use ` machine rm`:
To remove a host and all of its containers and images, use ` docker- machine rm`:
```
```
$ machine rm dev staging
$ docker- machine rm dev staging
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
```
```
## Adding a host without a driver
## Adding a host without a driver
You can add a host to Docker which only has a URL and no driver. Therefore it
You can add a host to Docker which only has a URL and no driver. Therefore it
can be used an alias for an existing host so you don’ t have to type out the URL
can be used an alias for an existing host so you don’ t have to type out the URL
every time you run a Docker command.
every time you run a Docker command.
```
```
$ machine create --url=tcp://50.134.234.20:2376 custombox
$ docker- machine create --url=tcp://50.134.234.20:2376 custombox
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
custombox * none Running tcp://50.134.234.20:2376
custombox * none Running tcp://50.134.234.20:2376
```
```
## Subcommands
## Subcommands
#### active
#### active
Get or set the active machine.
Get or set the active machine.
```
```
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
dev virtualbox Running tcp://192.168.99.103:2375
dev virtualbox Running tcp://192.168.99.103:2375
staging * digitalocean Running tcp://104.236.50.118:2375
staging * digitalocean Running tcp://104.236.50.118:2375
$ machine active dev
$ docker- machine active dev
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
dev * virtualbox Running tcp://192.168.99.103:2375
dev * virtualbox Running tcp://192.168.99.103:2375
staging digitalocean Running tcp://104.236.50.118:2375
staging digitalocean Running tcp://104.236.50.118:2375
@ -274,12 +274,12 @@ staging digitalocean Running tcp://104.236.50.118:2375
Create a machine.
Create a machine.
```
```
$ machine create --driver virtualbox dev
$ docker- machine create --driver virtualbox dev
INFO[0000] Creating SSH key...
INFO[0000] Creating SSH key...
INFO[0000] Creating VirtualBox VM...
INFO[0000] Creating VirtualBox VM...
INFO[0007] Starting VirtualBox VM...
INFO[0007] Starting VirtualBox VM...
INFO[0007] Waiting for VM to start...
INFO[0007] Waiting for VM to start...
INFO[0038] "dev" has been created and is now the active machine. To point Docker at this machine, run: export DOCKER_HOST=$(machine url) DOCKER_AUTH=identity
INFO[0038] "dev" has been created and is now the active machine. To point Docker at this machine, run: export DOCKER_HOST=$(docker- machine url) DOCKER_AUTH=identity
```
```
#### config
#### config
@ -287,7 +287,7 @@ INFO[0038] "dev" has been created and is now the active machine. To point Docker
Show the Docker client configuration for a machine.
Show the Docker client configuration for a machine.
```
```
$ machine config dev
$ docker- machine config dev
--tls --tlscacert=/Users/ehazlett/.docker/machines/dev/ca.pem --tlscert=/Users/ehazlett/.docker/machines/dev/cert.pem --tlskey=/Users/ehazlett/.docker/machines/dev/key.pem -H tcp://192.168.99.103:2376
--tls --tlscacert=/Users/ehazlett/.docker/machines/dev/ca.pem --tlscert=/Users/ehazlett/.docker/machines/dev/cert.pem --tlskey=/Users/ehazlett/.docker/machines/dev/key.pem -H tcp://192.168.99.103:2376
```
```
@ -296,7 +296,7 @@ $ machine config dev
Inspect information about a machine.
Inspect information about a machine.
```
```
$ machine inspect dev
$ docker- machine inspect dev
{
{
"DriverName": "virtualbox",
"DriverName": "virtualbox",
"Driver": {
"Driver": {
@ -318,7 +318,7 @@ Show help text.
Get the IP address of a machine.
Get the IP address of a machine.
```
```
$ machine ip
$ docker- machine ip
192.168.99.104
192.168.99.104
```
```
@ -327,11 +327,11 @@ $ machine ip
Kill (abruptly force stop) a machine.
Kill (abruptly force stop) a machine.
```
```
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
dev * virtualbox Running tcp://192.168.99.104:2376
dev * virtualbox Running tcp://192.168.99.104:2376
$ machine kill dev
$ docker- machine kill dev
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
dev * virtualbox Stopped
dev * virtualbox Stopped
```
```
@ -341,7 +341,7 @@ dev * virtualbox Stopped
List machines.
List machines.
```
```
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
dev virtualbox Stopped
dev virtualbox Stopped
foo0 virtualbox Running tcp://192.168.99.105:2376
foo0 virtualbox Running tcp://192.168.99.105:2376
@ -353,26 +353,26 @@ foo4 * virtualbox Running tcp://192.168.99.109:2376
#### restart
#### restart
Restart a machine. Oftentimes this is equivalent to
Restart a machine. Oftentimes this is equivalent to
` machine stop; machine start`.
` docker- machine stop; machine start`.
```
```
$ machine restart
$ docker- machine restart
INFO[0005] Waiting for VM to start...
INFO[0005] Waiting for VM to start...
```
```
#### rm
#### rm
Remove a machine. This will remove the local reference as well as delete it
Remove a machine. This will remove the local reference as well as delete it
on the cloud provider or virtualization management platform.
on the cloud provider or virtualization management platform.
```
```
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
foo0 virtualbox Running tcp://192.168.99.105:2376
foo0 virtualbox Running tcp://192.168.99.105:2376
foo1 virtualbox Running tcp://192.168.99.106:2376
foo1 virtualbox Running tcp://192.168.99.106:2376
$ machine rm foo1
$ docker- machine rm foo1
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
foo0 virtualbox Running tcp://192.168.99.105:2376
foo0 virtualbox Running tcp://192.168.99.105:2376
```
```
@ -382,9 +382,9 @@ foo0 virtualbox Running tcp://192.168.99.105:2376
Log into or run a command on a machine using SSH.
Log into or run a command on a machine using SSH.
```
```
$ machine ssh -c "echo this process ran on a remote machine"
$ docker- machine ssh -c "echo this process ran on a remote machine"
this process ran on a remote machine
this process ran on a remote machine
$ machine ssh
$ docker- machine ssh
## .
## .
## ## ## ==
## ## ## ==
## ## ## ## ===
## ## ## ## ===
@ -409,7 +409,7 @@ bin/ etc/ init linuxrc opt/ root/ sbin/ tmp var/
Gracefully start a machine.
Gracefully start a machine.
```
```
$ machine restart
$ docker- machine restart
INFO[0005] Waiting for VM to start...
INFO[0005] Waiting for VM to start...
```
```
@ -418,11 +418,11 @@ INFO[0005] Waiting for VM to start...
Gracefully stop a machine.
Gracefully stop a machine.
```
```
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
dev * virtualbox Running tcp://192.168.99.104:2376
dev * virtualbox Running tcp://192.168.99.104:2376
$ machine stop dev
$ docker- machine stop dev
$ machine ls
$ docker- machine ls
NAME ACTIVE DRIVER STATE URL
NAME ACTIVE DRIVER STATE URL
dev * virtualbox Stopped
dev * virtualbox Stopped
```
```
@ -432,7 +432,7 @@ dev * virtualbox Stopped
Upgrade a machine to the latest version of Docker.
Upgrade a machine to the latest version of Docker.
```
```
$ machine upgrade dev
$ docker- machine upgrade dev
```
```
#### url
#### url
@ -440,13 +440,13 @@ $ machine upgrade dev
Get the URL of a host
Get the URL of a host
```
```
$ machine url
$ docker- machine url
tcp://192.168.99.109:2376
tcp://192.168.99.109:2376
```
```
## Driver Options
## Driver Options
TODO: List all possible values (where applicable) for all flags for every
TODO: List all possible values (where applicable) for all flags for every
driver.
driver.
#### Amazon Web Services
#### Amazon Web Services
@ -465,7 +465,7 @@ Options:
- `--amazonec2-zone` : The AWS zone launch the instance in (i.e. one of a,b,c,d,e).
- `--amazonec2-zone` : The AWS zone launch the instance in (i.e. one of a,b,c,d,e).
#### Digital Ocean
#### Digital Ocean
Creates machines on [Digital Ocean ](https://www.digitalocean.com/ ). You need to create a personal access token under "Apps & API" in the Digital Ocean Control Panel and pass that to ` machine create` with the `--digitalocean-access-token` option.
Creates machines on [Digital Ocean ](https://www.digitalocean.com/ ). You need to create a personal access token under "Apps & API" in the Digital Ocean Control Panel and pass that to ` docker- machine create` with the `--digitalocean-access-token` option.
Options:
Options:
@ -491,7 +491,7 @@ Options:
Create machines on [Softlayer ](http://softlayer.com ).
Create machines on [Softlayer ](http://softlayer.com ).
You need to generate an API key in the softlayer control panel.
You need to generate an API key in the softlayer control panel.
[Retrieve your API key ](http://knowledgelayer.softlayer.com/procedure/retrieve-your-api-key )
[Retrieve your API key ](http://knowledgelayer.softlayer.com/procedure/retrieve-your-api-key )
Options:
Options:
@ -521,9 +521,9 @@ You need to create a subscription with a cert. Run these commands:
Go to the Azure portal, go to the "Settings" page, then "Manage Certificates" and upload `mycert.cer` .
Go to the Azure portal, go to the "Settings" page, then "Manage Certificates" and upload `mycert.cer` .
Grab your subscription ID from the portal, then run ` machine create` with these details:
Grab your subscription ID from the portal, then run ` docker- machine create` with these details:
$ machine create -d azure --azure-subscription-id="SUB_ID" --azure-subscription-cert="mycert.pem"
$ docker- machine create -d azure --azure-subscription-id="SUB_ID" --azure-subscription-cert="mycert.pem"
Options:
Options: