【问题标题】:docker run error: Unable to find image 'docker/getting-started:latest' locallydocker 运行错误:无法在本地找到图像 \'docker/getting-started:latest\'
【发布时间】:2023-02-24 18:31:41
【问题描述】:

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

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

回报如下:

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'.

Docker 桌面正在运行

dockerd 没问题:

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"

我不知道下一步该怎么做。谢谢你们!

【问题讨论】:

    标签: windows docker docker-desktop


    【解决方案1】:

    如果为 WSL2 安装 Docker Desktop,则必须运行 linux 终端才能使用 Docker 命令。

    【讨论】:

      【解决方案2】:

      使用哪个命令工具并不重要。它对我也不起作用。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2018-04-18
        • 2018-09-28
        • 2021-01-21
        • 1970-01-01
        • 2021-04-01
        • 2021-01-01
        • 1970-01-01
        相关资源
        最近更新 更多