mirror of https://github.com/docker/docs.git
Update aws.md (#3320)
This commit is contained in:
parent
0c044d01a1
commit
2b79393e81
|
@ -42,14 +42,14 @@ You can use environment variables:
|
||||||
|
|
||||||
## Options
|
## Options
|
||||||
|
|
||||||
- `--amazonec2-access-key`: Your access key id for the Amazon Web Services API.
|
- `--amazonec2-access-key`: Your access key ID for the Amazon Web Services API.
|
||||||
- `--amazonec2-secret-key`: Your secret access key for the Amazon Web Services API.
|
- `--amazonec2-secret-key`: Your secret access key for the Amazon Web Services API.
|
||||||
- `--amazonec2-session-token`: Your session token for the Amazon Web Services API.
|
- `--amazonec2-session-token`: Your session token for the Amazon Web Services API.
|
||||||
- `--amazonec2-ami`: The AMI ID of the instance to use.
|
- `--amazonec2-ami`: The AMI ID of the instance to use.
|
||||||
- `--amazonec2-region`: The region to use when launching the instance.
|
- `--amazonec2-region`: The region to use when launching the instance.
|
||||||
- `--amazonec2-vpc-id`: Your VPC ID to launch the instance in.
|
- `--amazonec2-vpc-id`: Your VPC ID to launch the instance in.
|
||||||
- `--amazonec2-zone`: The AWS zone to launch the instance in (i.e. one of a,b,c,d,e).
|
- `--amazonec2-zone`: The AWS zone to launch the instance in (i.e. one of a,b,c,d,e).
|
||||||
- `--amazonec2-subnet-id`: AWS VPC subnet id.
|
- `--amazonec2-subnet-id`: AWS VPC subnet ID.
|
||||||
- `--amazonec2-security-group`: AWS VPC security group name.
|
- `--amazonec2-security-group`: AWS VPC security group name.
|
||||||
- `--amazonec2-tags`: AWS extra tag key-value pairs (comma-separated, e.g. key1,value1,key2,value2).
|
- `--amazonec2-tags`: AWS extra tag key-value pairs (comma-separated, e.g. key1,value1,key2,value2).
|
||||||
- `--amazonec2-instance-type`: The instance type to run.
|
- `--amazonec2-instance-type`: The instance type to run.
|
||||||
|
@ -125,11 +125,11 @@ Note that a security group will be created and associated to the host. This secu
|
||||||
- swarm (3376/tcp), only if the node is a swarm master
|
- swarm (3376/tcp), only if the node is a swarm master
|
||||||
|
|
||||||
If you specify a security group yourself using the `--amazonec2-security-group` flag, the above ports will be checked and opened and the security group modified.
|
If you specify a security group yourself using the `--amazonec2-security-group` flag, the above ports will be checked and opened and the security group modified.
|
||||||
If you want more ports to be opened, like application specific ports, use the aws console and modify the configuration manually.
|
If you want more ports to be opened, like application specific ports, use the AWS console and modify the configuration manually.
|
||||||
|
|
||||||
## VPC ID
|
## VPC ID
|
||||||
|
|
||||||
We determine your default vpc id at the start of a command.
|
We determine your default VPC ID at the start of a command.
|
||||||
In some cases, either because your account does not have a default vpc, or you don't want to use the default one, you can specify a vpc with the `--amazonec2-vpc-id` flag.
|
In some cases, either because your account does not have a default vpc, or you don't want to use the default one, you can specify a vpc with the `--amazonec2-vpc-id` flag.
|
||||||
|
|
||||||
To find the VPC ID:
|
To find the VPC ID:
|
||||||
|
@ -141,7 +141,7 @@ To find the VPC ID:
|
||||||
|
|
||||||
For example, `us-east1-a` is in the `a` availability zone. If the `a` zone is not present, you can create a new subnet in that zone or specify a different zone when you create the machine.
|
For example, `us-east1-a` is in the `a` availability zone. If the `a` zone is not present, you can create a new subnet in that zone or specify a different zone when you create the machine.
|
||||||
|
|
||||||
To create a machine with a non-default vpc-id:
|
To create a machine with a non-default VPC-ID:
|
||||||
|
|
||||||
$ docker-machine create --driver amazonec2 --amazonec2-access-key AKI******* --amazonec2-secret-key 8T93C********* --amazonec2-vpc-id vpc-****** aws02
|
$ docker-machine create --driver amazonec2 --amazonec2-access-key AKI******* --amazonec2-secret-key 8T93C********* --amazonec2-vpc-id vpc-****** aws02
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue