在docker卷上耗尽inode

时间:2015-10-27 20:26:40

标签: macos docker centos docker-compose inode

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

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

映射上面的2卷。当我登录我的虚拟机并运行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

你可以/ code和/ home / dev我的2卷只有1000个inode,所以当我运行我的构建过程并最终创建大量文件时,我得到一个我没有的错误足够的inode。

主机= OSX Guest = CentOs 6.5 使用Virtualbox

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

1 个答案:

答案 0 :(得分:1)

我正在寻找类似的解决方案,到目前为止,我发现这篇文章中有一些有用的信息:

此外,根据这篇文章,似乎没有一种动态的分配inode的方法:

最后,文档中有这一行:

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