Docker请求对资源的访问被拒绝

时间:2019-05-02 20:07:50

标签: docker

我已经读过denied: requested access to the resource is denied : docker,并且也一样,但是访问仍然被拒绝。

docker tag my_image my_name/rep:tag
docker push my_name/rep:tag

但是我明白了

denied: requested access to the resource is denied

我想问题出在

docker login

如果我输入的密码错误,我会得到

incorrect username or password

如果我输入正确的密码,我会得到 enter image description here 我没看到

login succeeded

我尝试过

docker login -u username -p password

并获得

Using --password via the CLI is insecure. Use --password-stdin 

我尝试使用--password-stdin并获得相同的结果

  • 我使用Windows 8和Docker 18.09.3版

1 个答案:

答案 0 :(得分:0)

我使用Git Bash-谢谢@michalk 通过Git Bash看来

$ docker login -u usename -p password
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
WARNING! Your password will be stored unencrypted in C:\Users\..............docker\config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store

Login Succeeded
相关问题