在docker卷上使用inode

我有以下docker-compos.yml文件:

web: build: . ports: - "4200:4200" - "35729:35729" volumes: - ..:/code - ../home:/home/dev 

它映射了上面的两卷。 当我login到我的虚拟机,并运行df -i我看到

 Filesystem Inodes IUsed IFree IUse% Mounted on none 1218224 509534 708690 42% / tmpfs 256337 18 256319 1% /dev shm 256337 1 256336 1% /dev/shm tmpfs 256337 11 256326 1% /sys/fs/cgroup none 1000 0 1000 0% /code none 1000 0 1000 0% /home/dev /dev/sda1 1218224 509534 708690 42% /etc/resolv.conf /dev/sda1 1218224 509534 708690 42% /etc/hostname /dev/sda1 1218224 509534 708690 42% /etc/hosts tmpfs 256337 18 256319 1% /proc/kcore tmpfs 256337 18 256319 1% /proc/timer_stats 

正如你可以/代码和/ home / dev我的2卷只有1000个inode,所以当我运行我的构build过程,并最终创build大量的文件,我得到一个错误,我没有足够的索引节点。

主机= OSX Guest = CentOs 6.5使用Virtualbox

我的问题是:我如何分配更多的inode到我的数据卷/代码和/ home / dev上面?

我正在寻找一个类似的解决scheme,到目前为止,我发现这个职位有一些有用的信息:

  • 如何免费使用inode

另外,根据这个post,似乎没有一个dynamic的分配inode的方式:

  • 我怎样才能增加inode的数量…

最后,文档中有这样一行:

  • it is not possible to expand the number of inodes on a filesystem after it is created