View centos hard drive capacity

查看磁盘使用情况

df -h

  

 

列出指定的外围设备的[分区表]状况
fdisk -l

  

列出所有可用块设备的信息
lsblk
#sda1-->意思是第一个硬盘(a)的第一个分区(1)

  

 

 
列出所有设备的[分区]信息

parted -l

  

 

 Command to check the space each directory, trying to find the directory take up more space

du / -h --max-depth=1

  

 

 

View disk usage of Docker

docker system df 

  

 

View Mirror

 docker images

  

 

Delete container

docker rm -f [containerID]

  

 

 Delete unwanted Mirror

docker rmi mirror [id]

  

 

reference 

Disk and disk management information under Centos View 

/ Var / lib / docker / overlay2 take up a lot, Docker clean up disk space, migration / var / lib / docker directory

 

Guess you like

Origin www.cnblogs.com/waynono/p/10947847.html