如何使用 cirrus-ci 创建 docker 多架构清单?

How to create docker multiarch manifest using cirrus-ci?

我正在尝试使用 Cirrus CI, so I need to enable the docker experimental option
构建多架构清单 但是docker的实验选项没有考虑

在 .cirrusci.yml 我有类似的东西:

publish_docker_builder:
  script: | 
    mkdir -p $HOME/.docker
    echo '{ "experimental": "enabled" }' > $HOME/.docker/config.json
    docker info
    docker login --username=$DOCKERHUB_USER --password=$DOCKERHUB_PASS 
    docker manifest create --amend $CIRRUS_REPO_FULL_NAME:latest $CIRRUS_REPO_FULL_NAME:linux  $CIRRUS_REPO_FULL_NAME:rpi  $CIRRUS_REPO_FULL_NAME:windows

但是执行报告:

mkdir -p $HOME/.docker
echo '{ "experimental": "enabled" }' > $HOME/.docker/config.json
....
Labels:
Experimental: false
....
docker manifest create is only supported on a Docker cli with experimental cli features enabled

完整日志为https://api.cirrus-ci.com/v1/task/6577836603736064/logs/main.log

这是 Cirrus dockerd 的限制 CI 还是我配置有误?

docker cli 似乎改变了启用实验性功能的方式 cli

DOCKER_CLI_EXPERIMENTAL Enable experimental features for the cli (e.g. enabled or disabled)

添加到 .cirrusci.yml :

  env:
    DOCKER_CLI_EXPERIMENTAL: enabled