【发布时间】:2018-03-27 19:44:08
【问题描述】:
我正在尝试获取我的私有 Docker 映像的映像清单。
GET /v2/name/manifests/reference
它正在返回标题:
Www-Authenticate →Bearer realm="https://auth.docker.io/token",service="registry.docker.io",scope="repository:{username}:pull"
所以我提出了一个请求:Www-Authenticate →Bearer realm="https://auth.docker.io/token",service="registry.docker.io",scope="repository:{username}:pull" 我得到了令牌。
我将它添加到标题Authorization: Bearer {token}。
但我仍然收到 401 响应。
我的用户名和密码应该放在哪里?
【问题讨论】: