docker:来自守护程序的错误响应:拒绝对rhel 7/rhel的拉访问

w6mmgewl  于 2022-11-28  发布在  Docker
关注(0)|答案(4)|浏览(297)

我的 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>

如何修复?

tpxzln5u

tpxzln5u1#

这个错误意味着您试图拉取的Docker映像是私有的。只有有权限的登录用户才可以拉取映像。您可以使用命令docker login来登录到Docker集线器,但是如果您的用户没有权限,它还是会失败。

vwkv1x7d

vwkv1x7d2#

此文档似乎是Red Hat的内部文档。REHL不是社区分发版,并且在Docker Hub中没有它的映像。您需要使用CentOS images中的一个,或者尝试其他GNU/Linux发行版,如UbuntuDebian

rqdpfwrv

rqdpfwrv3#

在我的情况下是一个错误的命令。我试图执行这个:

sudo docker run -dit --name ${CI_PROJECT_PATH_SLUG} -p "443:443" -p "8050:8050" -p "8069:8069" -p "8052:8052" -p "3306:3306" -p "5432:5432" -p "9003:9003" linux

未标识此参数**${CI_PROJECT_PATH_SLUG}**。
它看起来很奇怪,因为输出并没有告诉参数无法识别,而是这样:

docker: Error response from daemon: pull access denied for 443, repository does not exist or may require 'docker login': denied: requested access to the resource is denied.
g9icjywg

g9icjywg4#

其中一个普遍的错误可能不是登录,你可能正在拉一个映像,这是不在您的本地机器,或在社区dockerhub.去dockerhub在线检查这样的映像是否存在.如果它确实存在,那么它肯定登录.这些是唯一可能的问题,一个人可以面对.

相关问题