2.5 use of docker machine on alicloud

Time:2021-11-25

Officially supported cloud service providers

https://docs.docker.com/machine/drivers/

Cloud service providers supported by third-party plug-ins

https://github.com/docker/docker.github.io/blob/master/machine/AVAILABLE_DRIVER_PLUGINS.md

Use on alicloud

Installation documentationhttps://github.com/AliyunContainerService/docker-machine-driver-aliyunecs

1. View all docker machine drivers

ls -al /usr/local/bin/docker-machine-driver*

2. Download 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. View the available commands of alicloud driver

docker-machine create -d aliyunecs --help

4. Create container

docker-machine create -d aliyunecs --aliyunecs-access-key-id=$key --aliyunecs-access-key-secret=$secret $instance_id