官网反对的云服务提供商
https://docs.docker.com/machine/drivers/
第三方插件反对的云服务提供商
https://github.com/docker/docker.github.io/blob/master/machine/AVAILABLE_DRIVER_PLUGINS.md
在阿里云上应用
装置文档 https://github.com/AliyunContainerService/docker-machine-driver-aliyunecs
1. 查看所有的 docker-machine driver
ls -al /usr/local/bin/docker-machine-driver*
2. 下载 docker-machine driver
https://docker-machine-drivers.oss-cn-beijing.aliyuncs.com/docker-machine-driver-aliyunecs_darwin-amd64.tgz
mv /path/to/docker-machine-driver-aliyunecs.darwin-amd64 /usr/local/bin
mv /usr/local/bin/docker-machine-driver-aliyunecs.darwin-amd64 /usr/local/bin/docker-machine-driver-aliyunecs
3. 查看阿里云 driver 可用命令
docker-machine create -d aliyunecs --help
4. 创立容器
docker-machine create -d aliyunecs --aliyunecs-access-key-id=$key --aliyunecs-access-key-secret=$secret $instance_id