如果我执行以下操作:
docker pull hello-world
docker login registry-1.docker.io
docker tag 9c7a54a9a43c rabonagol/hello-world:test
docker push rabonagol/hello-world:test
在第 2 行之后提示输入密码时,我输入我的 docker hub 密码,然后推送不起作用。它返回:
The push refers to repository [docker.io/rabonagol/hello-world]
01bb4fce3eb1: Preparing
unauthorized: access token has insufficient scopes
我也试过,而不是第2行:
docker login
。这也不起作用,即使使用两种登录方式,它都显示“已成功登录”。例如
@qAp ➜ /workspaces $ docker login registry-1.docker.io
Username: rabonagol
Password:
WARNING! Your password will be stored unencrypted in /home/codespace/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
我需要为 Codespace 设置一些配置,还是根本不允许执行此操作?