我在运行Ubuntu 14.04 LTS的Amazon m2.large实例上运行docker (GNU / Linux 3.13.0-24-通用x86_64)。
以下是docker info
Containers: 10
Images: 72
Storage Driver: devicemapper
Pool Name: docker-202:16-475138-pool
Data file: /mnt/docker/devicemapper/devicemapper/data
Metadata file: /mnt/docker/devicemapper/devicemapper/metadata
Data Space Used: 2574.9 Mb
Data Space Total: 102400.0 Mb
Metadata Space Used: 4.5 Mb
Metadata Space Total: 2048.0 Mb
Execution Driver: native-0.2
Kernel Version: 3.13.0-24-generic
WARNING: No swap limit support
以下是docker version
的输出:
Client version: 1.0.1
Client API version: 1.12
Go version (client): go1.2.1
Git commit (client): 990021a
Server version: 1.0.1
Server API version: 1.12
Go version (server): go1.2.1
Git commit (server): 990021a
我正在运行docker,如下所示:
docker run \
--volume /mnt/dir_1:/outputs:rw \
--volume /mnt/dir_2:/inputs:ro \
--detach=false \
--cidfile=/mnt/dir_3/container_id \
my_image \
arg_1 \
arg_2
但是我收到以下错误:
2014/07/01 22:26:59 Error response from daemon: Error mounting '/dev/mapper/docker-202:16-475138-e1d927e16afbf1537f66bb0b6f3df56be7160cea7abefe19059aff2c00c55a0a-init' on '/mnt/docker/devicemapper/mnt/e1d927e16afbf1537f66bb0b6f3df56be7160cea7abefe19059aff2c00c55a0a-init': invalid argument
我已成功运行此命令一次,它产生了预期的输出。现在它返回此错误。我该如何解决这个问题?感谢。
答案 0 :(得分:1)
解决方法似乎是摆脱默认的驱动程序' devmapper'并使用' btrfs'驱动程序,相应格式化的文件系统。一个更高效的选择是使用' overlayfs'驱动程序。