【发布时间】:2019-08-15 13:08:16
【问题描述】:
我正在尝试通过以下命令使用 docker 创建一个新的 EC2 机器:
docker-machine create --driver amazonec2 --amazonec2-region "us-east-1" --amazonec2-instance-type "t2.micro" rahul-test
我收到此错误:
Error setting machine configuration from flags provided: amazonec2 driver requires AWS credentials configured with the --amazonec2-access-key and --amazonec2-secret-key options, environment variables, ~/.aws/credentials, or an instance role
我有我的 ~/.aws/credentials,所以我不确定为什么该命令不使用这些凭据来创建机器
【问题讨论】:
标签: amazon-web-services docker amazon-ec2 docker-machine