【发布时间】:2015-10-16 03:27:25
【问题描述】:
我正在尝试从debian:latest 构建图像。构建后,docker images 命令报告的映像虚拟大小为 1.917 GB。我登录查看大小 (du -sh /),它是 573 MB。我很确定这种巨大的尺寸通常是不可能的。这里发生了什么?如何获得正确大小的图像?更重要的是,当我推送此存储库时,大小为 1.9 GB 而不是 573 MB。
du -sh /*的输出
8.9M /bin
4.0K /boot
0 /dev
1.1M /etc
4.0K /home
30M /lib
4.0K /lib64
4.0K /media
4.0K /mnt
4.0K /opt
du: cannot access '/proc/11/task/11/fd/4': No such file or directory
du: cannot access '/proc/11/task/11/fdinfo/4': No such file or directory
du: cannot access '/proc/11/fd/4': No such file or directory
du: cannot access '/proc/11/fdinfo/4': No such file or directory
0 /proc
427M /root
8.0K /run
3.9M /sbin
4.0K /srv
0 /sys
8.0K /tmp
88M /usr
15M /var
【问题讨论】: