Docker - 没有这样的文件或目录 [英] Docker - no such file or directory
问题描述
我已经尝试了许多方法来删除容器和图像,所以我几乎在这个库存。
任何
Docker文件是:
FROM node:6
RUN git clone https://github.com/preboot/angular2-webpack.git
WORKDIR angular2 -webpack
运行sed -i.bak的/ - 端口8080 / - 主机0.0.0.0 --port 8080 /'
package.json RUN npm i
CMD [npm,运行,开始]
完整的控制台输出是:
将构建上下文发送到Docker守护程序
9.728 kB
步骤1:FROM节点:6
6:从库/节点
6a5a5368e0c2:已经存在
7b9457ec39de:已经存在
ff18e19c2db4:已经存在
6a3d69edbe90:已经存在
0ce4b037e17f:已经存在
82252a100d5a:已经存在
摘要:
sha256:db245bde5445eb122d8dc090ba98539a9ef7f56c0ea981ade643695af0d8eaf0
状态:下载更新的节点图像:6
---> 9873603dc506步骤2:
运行git克隆https://github.com/preboot/angular2-webpack.git打开
/ var / lib / docker / aufs / layers / 9319fd93cb6d6718243ff2e65ce5d2aa6122a1bb9211aa9f8e88d85c298727e5:
否文件或目录用户:docker-test
编辑
由于@BMitchs的建议,问题得到解决:
- rm -rf / var / lib / docker / *
- 完全卸载Docker
- 重新安装docker
- rm -rf /var/lib/docker/*
- Uninstall Docker completely
- re install docker
有了这种腐败,我会给一个完整的docker擦一下, rm -rf / VAR / LIB /搬运工/ *
。在执行此操作之前,请备份任何数据(卷),然后关闭docker,然后再次重新绘制或重建所有图像。如果aufs仍然存在问题,请尝试更改文件系统驱动程序,例如在您的服务启动中更改为 dockerd -s overlay2
。
不要检查常见问题,喜欢用完磁盘空间或旧版本的应用程序,首先。
I'm receiving an error from docker when I run my docker file. It's saying the /var/lib/docker/aufs/layers/xxxx: no such file or directory when I run Docker build .
I have tried numerous ways to remove containers and images so I'm pretty much stock on this one.
Any
The Docker file is:
FROM node:6
RUN git clone https://github.com/preboot/angular2-webpack.git
WORKDIR angular2-webpack
RUN sed -i.bak 's/--port 8080/--host 0.0.0.0 --port 8080/'
package.json RUN npm i
CMD [ "npm", "run", "start" ]
The complete console output is:
Sending build context to Docker daemon
9.728 kB
Step 1 : FROM node:6
6: Pulling from library/node
6a5a5368e0c2: Already exists
7b9457ec39de: Already exists
ff18e19c2db4: Already exists
6a3d69edbe90: Already exists
0ce4b037e17f: Already exists
82252a100d5a: Already exists
Digest:
sha256:db245bde5445eb122d8dc090ba98539a9ef7f56c0ea981ade643695af0d8eaf0
Status: Downloaded newer image for node:6
---> 9873603dc506 Step 2 :
RUN git clone https://github.com/preboot/angular2-webpack.git open
/var/lib/docker/aufs/layers/9319fd93cb6d6718243ff2e65ce5d2aa6122a1bb9211aa9f8e88d85c298727e5:
no such file or directory User:docker-test
Edit
The issue was resolved thanks to @BMitchs' recommendation:
With that sort of corruption, I'd give a full docker wipe a try, rm -rf /var/lib/docker/*
. Before doing that, backup any data (volumes), then shutdown docker, and you'll need to pull or rebuild all your images again. If there are still problems with aufs, try changing the filesystem driver, e.g. changing to dockerd -s overlay2
in your service startup.
It doesn't hurt to check for common issues, like running out of disk space or old version of the application, first.
这篇关于Docker - 没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!