我在運行docker文件時收到docker的錯誤。它說/ var/lib/docker/aufs/layers/xxxx:當我運行Docker構建時沒有這樣的文件或目錄。Docker - 沒有這樣的文件或目錄
我已經嘗試了很多方法來刪除容器和圖像,所以我幾乎在這一個股票。
任何
泊塢窗文件是:
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" ]
完整的控制檯輸出爲:
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
編輯
的問題就解決了ŧ漢克斯@BMitchs'推薦:
- 室射頻的/ var/lib中/泊塢窗/ *
- 卸載碼頭工人完全
- 重新安裝搬運工
您可能需要在運行git clone之前指定工作目錄,否則將克隆到指定爲其工作目錄的原始節點映像中。 – bspates