docker login -u ${ACR_SERVICE_PRINCIPAL} --password-stdin ...

问题描述 投票:0回答:1
Finally figured out that I was using the Github secrets variable incorrectly. This works:

echo ${ACR_SERVICE_PRINCIPAL_PASSWORD} | docker login -u ${ACR_SERVICE_PRINCIPAL} --password-stdin spetestregistry.azurecr.io

我试图在Windows代理上运行的Github Actions步骤中运行这个命令。

Error: Cannot perform an interactive login from a non TTY device

但它返回了这个错误。

echo ${ACR_SERVICE_PRINCIPAL_PASSWORD} | winpty docker login -u ${ACR_SERVICE_PRINCIPAL} --password-stdin spetestregistry.azurecr.io

然后我又试了这个命令

stdin is not a tty

产生了这个错误

有谁知道我该怎么做?
docker github-actions
1个回答
0
投票

我试图在 Windows 代理上运行的 Github Actions 步骤中运行这个命令: echo ${ACR_SERVICE_PRINCIPAL_PASSWORD}。

© www.soinside.com 2019 - 2024. All rights reserved.