mirror of https://github.com/docker/docs.git
Update default image to Ubuntu 15.10
- Default image now is ubuntu server 15.10. This ensures consistency with other cloud drivers. - Better error message when virtual machine already exists. - Change default SSH user from `ubuntu` to `docker-user`. Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
This commit is contained in:
parent
7b96160454
commit
ce3cb54482
|
@ -72,11 +72,11 @@ Environment variables and default values:
|
|||
| ------------------------------- | ----------------------------- | ------------------ |
|
||||
| **`--azure-subscription-id`** | `AZURE_SUBSCRIPTION_ID` | - |
|
||||
| `--azure-environment` | `AZURE_ENVIRONMENT` | `AzurePublicCloud` |
|
||||
| `--azure-image` | `AZURE_IMAGE` | `canonical:UbuntuServer:14.04.3-LTS:latest` |
|
||||
| `--azure-image` | `AZURE_IMAGE` | `canonical:UbuntuServer:15.10:latest` |
|
||||
| `--azure-location` | `AZURE_LOCATION` | `westus` |
|
||||
| `--azure-resource-group` | `AZURE_RESOURCE_GROUP` | `docker-machine` |
|
||||
| `--azure-size` | `AZURE_SIZE` | `Standard_A2` |
|
||||
| `--azure-ssh-user` | `AZURE_SSH_USER` | `ubuntu` |
|
||||
| `--azure-ssh-user` | `AZURE_SSH_USER` | `docker-user` |
|
||||
| `--azure-vnet` | `AZURE_VNET` | `docker-machine` |
|
||||
| `--azure-subnet` | `AZURE_SUBNET` | `docker-machine` |
|
||||
| `--azure-subnet-prefix` | `AZURE_SUBNET_PREFIX` | `192.168.0.0/16` |
|
||||
|
|
|
@ -20,9 +20,9 @@ const (
|
|||
defaultAzureResourceGroup = "docker-machine"
|
||||
defaultAzureSize = "Standard_A2"
|
||||
defaultAzureLocation = "westus"
|
||||
defaultSSHUser = "ubuntu" // 'root' not allowed on Azure
|
||||
defaultSSHUser = "docker-user" // 'root' not allowed on Azure
|
||||
defaultDockerPort = 2376
|
||||
defaultAzureImage = "canonical:UbuntuServer:14.04.3-LTS:latest"
|
||||
defaultAzureImage = "canonical:UbuntuServer:15.10:latest"
|
||||
defaultAzureVNet = "docker-machine-vnet"
|
||||
defaultAzureSubnet = "docker-machine"
|
||||
defaultAzureSubnetPrefix = "192.168.0.0/16"
|
||||
|
@ -264,7 +264,7 @@ func (d *Driver) PreCreateCheck() (err error) {
|
|||
if exists, err := c.VirtualMachineExists(d.ResourceGroup, d.naming().VM()); err != nil {
|
||||
return err
|
||||
} else if exists {
|
||||
return fmt.Errorf("Virtual Machine with name %s already exists", d.naming().VM())
|
||||
return fmt.Errorf("Virtual Machine with name %s already exists in resource group %q", d.naming().VM(), d.ResourceGroup)
|
||||
}
|
||||
|
||||
// NOTE(ahmetalpbalkan) we could have done more checks here but Azure often
|
||||
|
|
Loading…
Reference in New Issue