docker - 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
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
解决方案
我用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
推荐阅读
- oop - 抽象工厂模式是否有“更多”真实世界的例子?
- json - 为什么我的 jq / read / echo 管道会删除反斜杠?
- c++ - 获取包含字符和整数的字符串并分别使用它们 C++
- android - 快速滚动后,BottomSheetDialogFragment 内的 RecyclerView 项目需要双击
- javascript - 使用 Helmet 嵌入第三方聊天小部件
- tcp - Windows 应用程序 TCP 有效负载 (md5) 可以复制吗?
- git - 使用 git rm 命令删除 .gitignore 中列出的文件
- reactjs - Amplify Authenticator 显示不需要的问候语
- javascript - JavaScript EventSource 监听 Webhook 推送到 PHP 脚本
- ajax - 使用 Javascript 从远程 EC2 实例读取文件?