• info

    info

    • 用法
    1. Usage: docker info [OPTIONS]
    2. Display system-wide information
    3. --help=false Print usage
    • 例子
    1. $ sudo docker -D info
    2. Containers: 6
    3. Images: 30
    4. Storage Driver: devicemapper
    5. Pool Name: docker-8:3-28326-pool
    6. Pool Blocksize: 65.54 kB
    7. Backing Filesystem: xfs
    8. Data file: /dev/loop0
    9. Metadata file: /dev/loop1
    10. Data Space Used: 1.37 GB
    11. Data Space Total: 107.4 GB
    12. Data Space Available: 44.49 GB
    13. Metadata Space Used: 2.245 MB
    14. Metadata Space Total: 2.147 GB
    15. Metadata Space Available: 2.145 GB
    16. Udev Sync Supported: true
    17. Deferred Removal Enabled: false
    18. Data loop file: /var/lib/docker/devicemapper/devicemapper/data
    19. Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
    20. Library Version: 1.02.93-RHEL7 (2015-01-28)
    21. Execution Driver: native-0.2
    22. Logging Driver: json-file
    23. Kernel Version: 3.10.0-229.el7.x86_64
    24. Operating System: CentOS Linux 7 (Core)
    25. CPUs: 1
    26. Total Memory: 979.7 MiB
    27. Name: localhost.localdomain
    28. ID: PRVB:3SDE:YL4E:JT5P:5BIR:BUC5:PHXI:HG4B:P753:Y2BI:U7OU:YPGC
    • 总结

    这个命令在开发者报告Bug时会非常有用,结合docker vesion一起,可以随时使用这个命令把本地的配置信息提供出来,方便Docker的开发者快速定位问题。