当我在docker上使用node-alpine时,它无法正常工作

时间:2018-08-16 07:30:56

标签: docker

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

FROM node:10.9.0-alpine

当我点击构建docker映像的命令时,它提示我一个错误

manifest for node:10.9.0-alpine not found

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

3 个答案:

答案 0 :(得分:1)

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

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

存在一个问题,该图像已准备好发布,因为已经构建了其他体系结构,但是所需的构建可能要花费额外的一个小时。

5分钟后再试一次,通常会自行解决。

答案 1 :(得分:0)

正在工作。

您可以检查docker守护程序是否能够从docker-registry中提取图像吗?

为此,请尝试执行以下命令,从下载的图像中删除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

答案 2 :(得分:-1)

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