Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

docker is full, all inodes are used

Tags:

docker

got huge problem, all my inodes seems to be used. I've cleaned all volumes unused Cleaned all container and images with command -> docker prune

but still it seems that it stay full :

Filesystem      Inodes   IUsed  IFree IUse% Mounted on
none           3200000 3198742   1258  100% /
tmpfs           873942      16 873926    1% /dev
tmpfs           873942      13 873929    1% /sys/fs/cgroup
/dev/sda1      3200000 3198742   1258  100% /images
shm             873942       1 873941    1% /dev/shm
tmpfs           873942       1 873941    1% /sys/firmware

docker info

Containers: 5
 Running: 3
 Paused: 0
 Stopped: 2
Images: 23
Server Version: 17.06.1-ce
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 53
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: bridge host macvlan null overlay
 Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 6e23458c129b551d5c9871e5174f6b1b7f6d1170
runc version: 810190ceaa507aa2727d7ae6f4790c76ec150bd2
init version: 949e6fa
Kernel Version: 3.16.0-4-amd64
Operating System: Debian GNU/Linux 8 (jessie)
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 6.668GiB
Name: serveur-1
ID: CW7J:FJAH:S4GR:4CGD:ZRWI:EDBY:AYBX:H2SD:TWZO:STZU:GSCX:TRIC
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

The only thing i think can do this, is a build i'm doing on this machine. This build runs a npm install with many files. Can these files stays on server ? is there any chance i have to delete these temporary files ?

like image 565
mcfly Avatar asked Nov 28 '17 12:11

mcfly


1 Answers

Is there any dangling volumes left in the system? If you have dangling volumes, it may fill up your disk space.

List all dangling volumes

docker volume ls -q -f dangling=true

Remove all dangling volumes

docker volume rm `docker volume ls -q -f dangling=true`
like image 131
ganesshkumar Avatar answered Sep 20 '22 10:09

ganesshkumar