当我在主机系统上运行以下命令时,它可以工作:
azure storage share create --account-name myaccount --account-key mykey myshare
但是当我使用 Docker Azure-CLI 时:
docker run -it microsoft/azure-cli
并在那里执行相同的命令,它失败了:
info: Executing command storage share create
info: Creating storage file share myshare
error: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.
RequestId:8ce76eed-001a-0134-6355-3b8268000000
Time:2016-11-10T13:19:30.9105340Z
error: Error information has been recorded to /root/.azure/azure.err
error: storage share create command failed
我已经尝试了其他贡献者的不同图像标签和 azure-cli 图像,但结果相同。
有什么想法吗?
编辑:
azure storage account list
-> 作品
azure storage share list -a myshare -k mykey
-> 不起作用(同样的错误)