当我将节点高山与 docker 一起使用时,它无法正常工作



我对 Docker 很陌生。我已经创建了Dockerfile。它看起来像这样。

FROM node:10.9.0-alpine

当我点击命令来构建 docker 映像时,它给我一个错误,说

manifest for node:10.9.0-alpine not found

有人可以帮助我解决这个问题吗? 谢谢!!

这可能是由于拉取请求而更新最新映像时的时间或构建问题。

https://github.com/docker-library/official-images/issues/3835

存在一个问题,即映像已发布为就绪,因为其他体系结构已生成,但所需的生成可能需要长达一个小时。

5 分钟后重试,它通常会自行解决。

它正在工作。

你能检查你的 docker 守护进程是否能够从 docker 注册表中提取镜像吗?

为此,请尝试通过执行以下命令从下载的图像中删除hello-world图像,然后重试再次下载。

$ docker rmi hello-world
$ docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
9db2ca6ccae0: Pull complete
Digest: sha256:4b8ff392a12ed9ea17784bd3c9a8b1fa3299cac44aca35a85c90c5e3c7afacdc
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/engine/userguide/

如果上面的命令工作正常,那么下面的命令也可以正常工作。

$ docker pull node:10.9.0-alpine
10.9.0-alpine: Pulling from library/node
8e3ba11ec2a2: Downloading [===========>                                       ]  490.2kB/2.207MB
0cbaf23af500: Downloading [=>                                                 ]  441.1kB/21.4MB
c53714e0a6af: Downloading [====================>                              ]  450.6kB/1.078MB

请尝试其他节点映像版本 我使用了节点:10-jessie 图像,但没有再次遇到问题

最新更新