我的 Docker
我从网上找到了这张速查表:https://design.jboss.org/redhatdeveloper/marketing/docker_cheatsheet/cheatsheet/images/docker_cheatsheet_r3v2.pdf
我发现错误
C:\Users\Administrator>docker run -it rhel7/rhel bash
Unable to find image 'rhel7/rhel:latest' locally
docker: Error response from daemon: pull access denied for rhel7/rhel, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
See 'docker run --help'.
C:\Users\Administrator>
如何修复?
4条答案
按热度按时间tpxzln5u1#
这个错误意味着您试图拉取的Docker映像是私有的。只有有权限的登录用户才可以拉取映像。您可以使用命令
docker login
来登录到Docker集线器,但是如果您的用户没有权限,它还是会失败。vwkv1x7d2#
此文档似乎是Red Hat的内部文档。REHL不是社区分发版,并且在Docker Hub中没有它的映像。您需要使用CentOS images中的一个,或者尝试其他GNU/Linux发行版,如Ubuntu或Debian。
rqdpfwrv3#
在我的情况下是一个错误的命令。我试图执行这个:
未标识此参数**${CI_PROJECT_PATH_SLUG}**。
它看起来很奇怪,因为输出并没有告诉参数无法识别,而是这样:
g9icjywg4#
其中一个普遍的错误可能不是登录,你可能正在拉一个映像,这是不在您的本地机器,或在社区dockerhub.去dockerhub在线检查这样的映像是否存在.如果它确实存在,那么它肯定登录.这些是唯一可能的问题,一个人可以面对.