运行docker run 提示:no space left on device
Tofloor
poster avatar
itfan
deepin
2015-05-29 22:22
Author
本帖最后由 itfan 于 2015-5-29 15:24 编辑
➜  ~  sudo docker run -i -t  centos:6.6 /bin/bash

FATA[0000] Error response from daemon: Cannot start container 0eb01bba7de13c05c51d78073477de1bd32169b52efc28e70d816d255d20e144: [8] System error: write /sys/fs/cgroup/docker/0eb01bba7de13c05c51d78073477de1bd32169b52efc28e70d816d255d20e144/cgroup.procs: no space left on device


好像是容器满了,我的docker images 就这一个啊。。。不知道怎么扩容。我硬盘很大,足够用。

谢谢。

Reply Favorite View the author
All Replies
Feng Yu
deepin
2015-05-29 23:33
#1
see: http://serverfault.com/questions ... tion-and-filesystem

参考老外的资料。简单来说,如果硬盘还有空余容量,可以调整下分区大小(可以使用parted,fdisk.gparted等工具完成),然后使用resizefs重新对分区调整大小(如果分区使用xfs文件系统,请使用xfs_grow)。deepin应该是带有gparted的,试试能不能调整你的分区容量?

如果跨硬盘调整分区容量,那么只能用lvm了
Reply View the author
itfan
deepin
2015-05-29 23:53
#2
https://bbs.deepin.org/post/30495
see: http://serverfault.com/questions/509468/how-to-extend-an-ext4-partition-and-filesystem

参考老 ...

不是啊。我的硬盘不需要增加新分区。目前就很大:

文件系统        容量  已用  可用 已用% 挂载点
/dev/sda4       458G   15G  421G    4% /
udev            1.9G  4.0K  1.9G    1% /dev
tmpfs           385M  1.9M  383M    1% /run
none            5.0M     0  5.0M    0% /run/lock
none            1.9G   72K  1.9G    1% /run/shm
none            100M   24K  100M    1% /run/user
/dev/sda2        96M   25M   72M   26% /boot/efi
Reply View the author
itfan
deepin
2015-05-30 00:56
#3
  1. root@itfanr-pc:/home/itfanr# docker info
  2. Containers: 10
  3. Images: 20
  4. Storage Driver: aufs
  5. Root Dir: /var/lib/docker/aufs
  6. Backing Filesystem: extfs
  7. Dirs: 40
  8. Dirperm1 Supported: false
  9. Execution Driver: native-0.2
  10. Kernel Version: 3.13.0-49-generic
  11. Operating System: Ubuntu 14.04 LTS
  12. CPUs: 4
  13. Total Memory: 3.755 GiB
  14. Name: itfanr-pc
  15. ID: R4GL:6FDK:ZRC2:Z46I:KAJ3:BVQW:3NHW:TA3K:ESHB:BSMW:CDNE:2DQ4
Copy the Code
Reply View the author
Feng Yu
deepin
2015-05-30 01:07
#4
https://bbs.deepin.org/post/30495
不是啊。我的硬盘不需要增加新分区。目前就很大:

文件系统        容量  已用  可用 已用% 挂载点

类似的issue看看: https://github.com/rancherio/rancher/issues/132

确认一下是不是innode占满了
Reply View the author
itfan
deepin
2015-05-30 01:30
#5
https://bbs.deepin.org/post/30495
类似的issue看看: https://github.com/rancherio/rancher/issues/132

确认一下是不是innode占满了 ...

文件系统          Inode 已用(I)  可用(I) 已用(I)% 挂载点
/dev/sda4      30490624  283906 30206718       1% /
udev             489455     514   488941       1% /dev
tmpfs            492171     537   491634       1% /run
none             492171       1   492170       1% /run/lock
none             492171       3   492168       1% /run/shm
none             492171      13   492158       1% /run/user
/dev/sda2             0       0        0        - /boot/efi

inode占满这种情况我考虑过,可是没有。。。
Reply View the author
Feng Yu
deepin
2015-05-30 05:09
#6
抱歉没遇到过你这个问题,我这边一直运行都正常,从ubuntu到linuxmint再到deepin一直都好好的,实在想不出来你的问题还可能在哪。

docker的官方文档还有一步就是把当前用户加入docker组中,这样以后操作docker命令不需要root权限了,当然service还是需要root身份管理的
Reply View the author
itfan
deepin
2015-05-30 05:42
#7
abcfy2 发表于 2015-5-29 21:09
抱歉没遇到过你这个问题,我这边一直运行都正常,从ubuntu到linuxmint再到deepin一直都好好的,实在想不出 ...

我直接切到root用户运行的。docker  -d没有问题,就是无法启动容器,郁闷。
Reply View the author