node.js - Debian,节点安装,发布文件错误
问题描述
我有一个关于 Debian 和节点安装的问题。
在我的 Dockerfile: 的这一行上RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - && apt-get install -y nodejs
,构建 docker 失败并出现以下错误:
Step 13/21 : RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - && apt-get install -y nodejs
---> Running in ef7d9114d16f
## Installing the NodeSource Node.js 8.x LTS Carbon repo...
## Populating apt-get cache...
+ apt-get update
Get:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Ign:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease
Get:2 http://security-cdn.debian.org/debian-security stretch/updates Release [92.7 kB]
Err:2 http://security-cdn.debian.org/debian-security stretch/updates Release
Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device)
Ign:3 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:4 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Ign:4 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release
Get:6 http://cdn-fastly.deb.debian.org/debian stretch-updates Release [89.4 kB]
Err:6 http://cdn-fastly.deb.debian.org/debian stretch-updates Release
Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device)
Err:7 http://deb.debian.org/debian stretch Release.gpg
At least one invalid signature was encountered.
Reading package lists...
E: The repository 'http://security.debian.org/debian-security stretch/updates Release' does no longer have a Release file.
E: The repository 'http://deb.debian.org/debian stretch-updates Release' does no longer have a Release file.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://cdn-fastly.deb.debian.org/debian stretch Release: At least one invalid signature was encountered.
Error executing command, exiting
ERROR: Service 'app' failed to build: The command '/bin/sh -c curl -sL https://deb.nodesource.com/setup_8.x | bash - && apt-get install -y nodejs' returned a non-zero code: 1
该构建可以在另一个人的机器上运行,并且在部署到登台时运行良好。您对如何解决此问题有任何想法吗?
解决方案
相关问题是Error writing to output file - write (28: No space left on device) Error writing to file - write (28: No space left on device)
.
我运行docker system prune
,回收了 32GB 并且运行良好。
推荐阅读
- spring - Hibernate 和 JPA @PreUpdate 和 @PrePersist 不起作用
- php - PHP 警告:count():参数必须是数组还是实现 Countable 的对象?
- variables - SSIS 使用 OLEDB 源的表名填充变量
- javascript - 如何使用 React ChartJs 只为每个第 n 个数据点显示一个点?
- reactjs - 发送查询 Apollo 客户端时出现网络错误
- java - 在循环内部/外部使用“Runtime.getRuntime()”
- javascript - 如何在单个数据库列中插入动态添加的输入字段值?
- reactjs - 如何将反应路由器错误与私有路由一起添加
- mysql - 所需问题的输出不正确
- c++ - 使用 Boost Spirit X3 解析特征矩阵