2017-01-30 100 views
0

我正試圖在我的電腦遭到敲擊時將docker pull mysql與mysql圖像拉在一起。我不得不重新啓動計算機,但在重新啓動並試圖用命令運行mysql的容器後docker run -d mysql我收到以下錯誤:Docker無法註冊圖層

Unable to find image 'mysql:latest' locally 
latest: Pulling from library/mysql 
5040bd298390: Pull complete 
55370df68315: Pull complete 
fad5195d69cc: Pull complete 
a1034a5fbbfc: Pull complete 
17f3570b42ae: Pull complete 
6bf4b16e5339: Pull complete 
9700c9731729: Pull complete 
f2fea9c5b632: Pull complete 
2f8101f5336d: Extracting 935 B/935 B 
0dc8f8a1031a: Download complete 
a1b9627588c7: Download complete 
docker: failed to register layer: rename /var/lib/docker/image/aufs/layerdb/tmp/layer-721305262 /var/lib/docker/image/aufs/layerdb/sha256/06dd4f9415b3f89d3fb1138623cebb7245affc9410611552c6fb52b091587a2e: directory not empty. 
See 'docker run --help'. 
3b17db599af1654ddb251295a55988121350a88c8176db24ddfe44f9194edb0c 

泊塢窗版本是1.12.3

我估計AUFS被由於重新啓動而損壞,但我不知道如何解決。請幫忙。謝謝

回答

0

看起來像是從過去的殘餘。刪除:

rm -fr /var/lib/docker/image/aufs/layerdb/sha256/06dd4f9415b3f89d3fb1138623cebb7245affc9410611552c6fb52b091587a2e 

然後嘗試:

docker pull mysql 
+0

我試過這個解決方案,但仍然得到同樣的錯誤,但這次新SHA256/,所以我想這也卸載並重新安裝碼頭工人和這對我有效 – Romaan