首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >码头运行错误:找不到图像“停靠/入门:最新本地”

码头运行错误:找不到图像“停靠/入门:最新本地”
EN

Stack Overflow用户
提问于 2022-03-23 03:46:35
回答 1查看 2.2K关注 0票数 0

当我尝试输入命令:docker run -d -p 80:80 docker/getting-started时,它返回信息:

代码语言:javascript
运行
复制
Unable to find image 'docker/getting-started:latest' locally
latest: Pulling from docker/getting-started
docker: no matching manifest for windows/amd64 10.0.22000 in the manifest list entries.
See 'docker run --help'.

然后我尝试运行这个命令docker run hello-world

报税表如下:

代码语言:javascript
运行
复制
Unable to find image 'hello-world:latest' locally
docker: Error response from daemon: Get "https://registry-1.docker.io/v2/": dial tcp: lookup registry-1.docker.io: no such host.
See 'docker run --help'.

码头桌面正在运行

码头是可以的:

代码语言:javascript
运行
复制
C:\WINDOWS\system32>cd C:\Program Files\Docker\Docker\resources

C:\Program Files\Docker\Docker\resources>dockerd
time="2022-03-23T10:59:57.396277500+08:00" level=info msg="Starting up"
time="2022-03-23T10:59:57.418789600+08:00" level=info msg="Windows default isolation mode: hyperv"
time="2022-03-23T10:59:57.425351400+08:00" level=info msg="Loading containers: start."
time="2022-03-23T10:59:57.425882900+08:00" level=info msg="Restoring existing overlay networks from HNS into docker"
time="2022-03-23T10:59:57.519394800+08:00" level=info msg="Loading containers: done."
time="2022-03-23T10:59:57.520494300+08:00" level=info msg="Docker daemon" commit=459d0df graphdriver(s)=windowsfilter version=20.10.12
time="2022-03-23T10:59:57.520494300+08:00" level=info msg="Daemon has completed initialization"
time="2022-03-23T10:59:57.529095300+08:00" level=info msg="API listen on //./pipe/docker_engine"
time="2022-03-23T11:07:34.608125700+08:00" level=info msg="Attempting next endpoint for pull after error: no matching manifest for windows/amd64 10.0.22000 in the manifest list entries"
time="2022-03-23T11:09:28.499155000+08:00" level=info msg="Attempting next endpoint for pull after error: no matching manifest for windows/amd64 10.0.22000 in the manifest list entries"
time="2022-03-23T11:19:23.557693900+08:00" level=error msg="Not continuing with pull after error: errors:\ndenied: requested access to the resource is denied\nunauthorized: authentication required\n"
time="2022-03-23T11:19:23.558115100+08:00" level=info msg="Ignoring extra error returned from registry: unauthorized: authentication required"

我不知道下一步该怎么做。谢谢大家!

EN

Stack Overflow用户

发布于 2022-03-23 07:02:35

如果安装码头桌面 for WSL2,则必须运行linux终端才能使用Docker命令。

票数 0
EN
查看全部 1 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71581578

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档