1.查看docker 空间使用情况

[root@worker1 ~]# docker system df
TYPE                TOTAL               ACTIVE              SIZE                RECLAIMABLE
Images              3                   0                   319.9MB             319.9MB (100%)
Containers          0                   0                   0B                  0B
Local Volumes       1                   0                   156.5kB             156.5kB (100%)
Build Cache         0                   0                   0B                  0B

2.查看实时事件(例如容器创建,删除等均会实时显示)

[root@worker1 ~]# docker system events

3.查看docker 系统信息(同docker info)

[root@worker1 ~]# docker system info

4.docker清理(清理停止的容器,没用容器使用的网络,镜像,缓存)

[root@worker1 ~]# docker system prune
WARNING! This will remove:
  - all stopped containers
  - all networks not used by at least one container
  - all dangling images
  - all dangling build cache

Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B
[root@worker1 ~]# 

 

相关文章:

  • 2021-07-12
  • 2022-12-23
  • 2023-03-20
  • 2021-11-27
  • 2022-01-05
  • 2021-12-24
猜你喜欢
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2022-01-28
  • 2022-12-23
相关资源
相似解决方案