• docker 常用命令 system篇


    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 ~]# 
  • 相关阅读:
    天才绅士少女助手克里斯蒂娜「推柿子」
    sum「莫队」
    simple,跳楼机,[同余系最短路]
    ceoi「chase」
    jzoj5195 数的划分
    lcis
    rectangle
    w
    v·y「状压dp」
    分手是住院「期望dp」
  • 原文地址:https://www.cnblogs.com/caonw/p/13259763.html
Copyright © 2020-2023  润新知