Since aliyun-cli official NO PLANS to support official docker image.
So I create my own aliyun-cli docker image and stay updated to the latest aliyun-cli version.
Weekly update by github action schedule.
This image also avaliable on GHCR: abcfy2/docker-aliyun-cli
And you may use latest
tag to use the latest version.
Currently support multi-arch images.
Dockerfile
link from github: abcfy2/docker-aliyun-cli
docker run abcfy2/aliyun-cli --region cn-hangzhou --access-key-id xxxx --access-key-secret xxxx ...
Also you can set credentials via environment variables:
ALIBABACLOUD_ACCESS_KEY_ID
ALIBABACLOUD_ACCESS_KEY_SECRET
ALIBABACLOUD_REGION_ID
- ...
E.g:
docker run -e ALIBABACLOUD_ACCESS_KEY_ID=xxx -e ALIBABACLOUD_ACCESS_KEY_SECRET=xxx -e ALIBABACLOUD_REGION_ID=cn-hangzhou abcfy2/aliyun-cli xxx
More avaliable environment variables can be found in source code. Just search
os.Getenv(
Full usage please visit official document