debian 11 系统,30G 的系统空间,安装了 docker ,显示占满了,但实际没有满。
用 df 查看,overlay2 占满了 29G 的空间
root@debian:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 394M 2.5M 391M 1% /run
/dev/sda1 29G 29G 0 100% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/md1 26T 17T 8.0T 68% /mnt/Public
tmpfs 394M 0 394M 0% /run/user/0
overlay 29G 29G 0 100% /var/lib/docker/overlay2/53cab8791c08e97ba594e604c7a39abf6958b0d94611ef017729e7a69f6a750a/merged
overlay 29G 29G 0 100% /var/lib/docker/overlay2/f338e2feb5125d730b106eaa7d3760ed41a8a2b7a9712e3386668d2feba3ed67/merged
overlay 29G 29G 0 100% /var/lib/docker/overlay2/fb36ca008cec29247d60c476cf7516ee251a1eac9c3cdd84807fc2ab33ab1217/merged
overlay 29G 29G 0 100% /var/lib/docker/overlay2/ad36b711af0ed9f0fc42c6e02b43846883b8da88289d2a236945122f552fd8de/merged
/var 空间其实只占了 4.5G
root@debian:~# du -sh /var
4.5G /var
/usr 空间
root@debian:~# du -sh /usr
2.7G /usr
请高手帮看看,是哪里的问题。
谢谢。
1
fuge 2022-11-15 16:35:34 +08:00
在 /opt 下面
|
3
nbweb OP root@debian:~# du -d1 -h /var/lib/docker/overlay2 | sort -h
24K /var/lib/docker/overlay2/547bae8b29ddc199407a94a84f98059ff4ef6cbad50bdb0e0a9b858b57562a09 36K /var/lib/docker/overlay2/8cec2d79bda5637bd30dd4c4a389845c081e5b66d3e459d70ef815a2cc75a7bf 40K /var/lib/docker/overlay2/8f7d5e2e8b3b170ad323567d51cbe90dc02e8826784dbbf7f321846bd7d009c0 40K /var/lib/docker/overlay2/ad36b711af0ed9f0fc42c6e02b43846883b8da88289d2a236945122f552fd8de-init 40K /var/lib/docker/overlay2/f338e2feb5125d730b106eaa7d3760ed41a8a2b7a9712e3386668d2feba3ed67-init 40K /var/lib/docker/overlay2/fb36ca008cec29247d60c476cf7516ee251a1eac9c3cdd84807fc2ab33ab1217-init 48K /var/lib/docker/overlay2/53cab8791c08e97ba594e604c7a39abf6958b0d94611ef017729e7a69f6a750a-init 80K /var/lib/docker/overlay2/d7eb00abe2492d9ec76693eb43be78941c669a76baf5da5f826f775c259ee8db 104K /var/lib/docker/overlay2/l 108K /var/lib/docker/overlay2/df9d7af75755da71593b70ea59e200f29ba5f9fb32e1e74c09a5aad277aa3c11 224K /var/lib/docker/overlay2/acb03b9a992c849edd678012f6497ccdaf7e84deb6c189eb0fd7b9b4aea6310b 304K /var/lib/docker/overlay2/9a1abdaf6b723905fbe4f6c1dc54396d8e32ae113dc4caa6e5c773b293c38c1a 12M /var/lib/docker/overlay2/99be51ffd7fe20fb556d2d18c7f029132ffba4a0efb67b07a840a91d04e21aeb 14M /var/lib/docker/overlay2/6d60b40fd81393bb4f724d81ccd15373b76ab0ba3175bfa4fd1a5aeced6d41d0 15M /var/lib/docker/overlay2/87156547dcccebaa223e3bb0311a44b8002b173a417f5963db7e32864a0b157a 22M /var/lib/docker/overlay2/765bfa08e78b66f7ebe90a06caa6c0f70f20af4269a0aee0c6fed81d5a99665b 34M /var/lib/docker/overlay2/ad36b711af0ed9f0fc42c6e02b43846883b8da88289d2a236945122f552fd8de 60M /var/lib/docker/overlay2/db204e2657372115b44731270ce44751ff6d33f67e18532592529d11a9d1d170 88M /var/lib/docker/overlay2/1a58843a5f605a6d9cc46fc4e6c60976838500d182e6d5e13b092f67d53575b1 125M /var/lib/docker/overlay2/9e3c37f8e0a43052dfd21f64ca1784912b0ab855b3bee4ba5db9cc70a97d912e 184M /var/lib/docker/overlay2/90f57b380741346be5e2f560ea825417c0dff2a1a0aa20ae4a5cb3b1e3cbe0b7 213M /var/lib/docker/overlay2/f338e2feb5125d730b106eaa7d3760ed41a8a2b7a9712e3386668d2feba3ed67 274M /var/lib/docker/overlay2/53cab8791c08e97ba594e604c7a39abf6958b0d94611ef017729e7a69f6a750a 274M /var/lib/docker/overlay2/c8848de1677a23275169af419f8dcae96b3684999430fdbd41ef1f4dda05e006 755M /var/lib/docker/overlay2/d2cf13ab0ed7ce006dd3fd6e0221b4a62f00c954cd689210487d94f77c5dc6c7 1.1G /var/lib/docker/overlay2/fb36ca008cec29247d60c476cf7516ee251a1eac9c3cdd84807fc2ab33ab1217 3.1G /var/lib/docker/overlay2 |
4
nbweb OP 很是奇怪,overlay2 实际只占 3.1G ,为什么显示占满了呢?
|
5
fuge 2022-11-15 16:56:38 +08:00
docker system df
docker system prune |
6
nbweb OP 找到原因了,挂载 /mnt 时,写错了,导致把电影下载到 debian 下面 /mnt 里面,而不是陈列里面。
|