我有一个CentOS,码头工人为我提供了有关overlayFS使用情况的信息。
WARNING: bridge-nf-call-ip6tables is disabled
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 8.0G 3.5G 4.6G 44% /
devtmpfs 3.8G 0 3.8G 0% /dev
tmpfs 3.9G 0 3.9G 0% /dev/shm
tmpfs 3.9G 180M 3.7G 5% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
tmpfs 781M 0 781M 0% /run/user/0
overlay 8.0G 3.5G 4.6G 44% /var/lib/docker/overlay2/194002afa67fa97156e5b690a21072df02b436f1fec2bb85e8a3929f7a62afe6/merged
overlay 8.0G 3.5G 4.6G 44% /var/lib/docker/overlay2/c44da3222afacb8d289abf656862a396d5676b04f3f491fdf1b5b9a03908c2d9/merged
shm 64M 0 64M 0% /var/lib/docker/containers/77a3eb464031c7bdc35949c2192898f0700e183b6f962cdfb09f4de1334a66e7/mounts/shm
shm 64M 0 64M 0% /var/lib/docker/containers/6e934813aba4889ea853adbb04c7b2a621a4283eb4fca5a074983bf264127c96/mounts/shm
但是在我的Ubuntu笔记本电脑上,我看不到覆盖层使用了多少。我还能怎么找到它?
Filesystem Size Used Avail Use% Mounted on
udev 32G 0 32G 0% /dev
tmpfs 6.3G 2.3M 6.3G 1% /run
/dev/nvme0n1p2 938G 440G 450G 50% /
tmpfs 32G 1.2G 31G 4% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 32G 0 32G 0% /sys/fs/cgroup
/dev/loop1 194M 194M 0 100% /snap/firefox/107
/dev/loop3 195M 195M 0 100% /snap/firefox/118
/dev/loop4 1.0M 1.0M 0 100% /snap/tmux/11
/dev/loop5 99M 99M 0 100% /snap/telegram-desktop/270
/dev/loop6 87M 87M 0 100% /snap/core/5145
/dev/loop8 35M 35M 0 100% /snap/gtk-common-themes/319
/dev/loop9 87M 87M 0 100% /snap/core/4917
/dev/loop10 99M 99M 0 100% /snap/telegram-desktop/266
/dev/nvme0n1p1 511M 4.7M 507M 1% /boot/efi
/dev/loop11 88M 88M 0 100% /snap/core/5328
/dev/loop7 99M 99M 0 100% /snap/telegram-desktop/274
/dev/loop0 56M 56M 0 100% /tmp/isomount
tmpfs 6.3G 24K 6.3G 1% /run/user/121
tmpfs 6.3G 112K 6.3G 1% /run/user/1000
/dev/loop12 195M 195M 0 100% /snap/firefox/124
答案 0 :(得分:0)
overlay storage driver在/var/lib/docker
下的普通目录中合并文件,以形成每个容器的文件系统;它没有任何特定的空间分配。您应该能够使用整个可用的根文件系统磁盘空间(除非您已经挂载了其他/var
或/var/lib/docker
磁盘)。 (甚至在显式列出的CentOS示例中,请注意,“覆盖”用法与根文件系统用法相同。)