亚马逊EFS& Docker - 创建图像时出错

时间:2016-09-19 10:15:45

标签: docker amazon-ec2 amazon

我想使用docker和amazon的弹性文件系统(EFS)。所以我将EFS安装在EC2机器上,并将一个efs文件夹设置为docker配置文件中的docker根文件夹。但是当我想创建一个图像时,我得到了这个错误:

Step 1 : FROM ubuntu:14.04
14.04: Pulling from library/ubuntu
862a3e9af0ae: Extracting [==================================================>]      65.7 MB/65.7 MB
6498e51874bf: Download complete
159ebdd1959b: Download complete
0fdbedd3771a: Download complete
7a1f7116d1e3: Download complete
failed to register layer: Error processing tar file(exit status 1): errno 524

在docker日志中,我收到此错误:

Error trying v2 registry: failed to register layer: Error processing tar file(exit status 1): errno 524
Attempting next endpoint for pull after error: failed to register layer: Error processing tar file(exit status 1): errno 524

我有什么想法可以解决这个问题吗?

1 个答案:

答案 0 :(得分:3)

我通过将-s devicemapper添加到docker daemon命令解决了问题,如问题中所述:New Docker versions cannot host datastore on NFS share