【发布时间】:2015-11-05 04:59:05
【问题描述】:
我正在尝试通过我拥有的 node.js 脚本启动一个填充 mongo 的 docker 容器。
使用下面的脚本,我得到了错误:
Step 2 : RUN apt-get update && apt-get install -y nodejs
---> Running in 7ed0f8e018e7
Get:1 http://security.debian.org wheezy/updates Release.gpg [1554 B]
Get:2 http://security.debian.org wheezy/updates Release [102 kB]
Get:3 http://httpredir.debian.org wheezy Release.gpg [2373 B]
Get:4 http://security.debian.org wheezy/updates/main amd64 Packages [405 kB]
Get:5 http://httpredir.debian.org wheezy-updates Release.gpg [1554 B]
Get:6 http://httpredir.debian.org wheezy Release [191 kB]
Get:7 http://httpredir.debian.org wheezy-updates Release [143 kB]
Get:8 http://httpredir.debian.org wheezy/main amd64 Packages [7637 kB]
Get:9 http://httpredir.debian.org wheezy-updates/main amd64 Packages [5788 B]
Fetched 8490 kB in 5s (1444 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package nodejs
使用这个 dockerfile:
FROM mongo:2.6.11
ENV NODE_ENV docker
RUN apt-get update && apt-get install -y nodejs
为什么apt-get找不到nodejs?
【问题讨论】:
-
也许
mongo:2.6.11是基于较旧的发行版? -
这里是 mongo 的 dockerfile:2.6.11 github.com/docker-library/mongo/blob/…
标签: linux node.js ubuntu docker