Docker info 命令

发布于 2022-07-18 11:47:13 更新于 2022-07-18 11:47:13

作用

info 命令常用于开发者提交 Bug 时,结合 docker version 一起,可以方便的把本地的配置信息提供出来,以便 Docker 官方开发者快速定位问题。

用法

Usage: docker info [OPTIONS]

Display system-wide information

  --help=false       Print usage

示例

$ sudo docker -D info
Containers: 6
Images: 30
Storage Driver: devicemapper
 Pool Name: docker-8:3-28326-pool
 Pool Blocksize: 65.54 kB
 Backing Filesystem: xfs
 Data file: /dev/loop0
 Metadata file: /dev/loop1
 Data Space Used: 1.37 GB
 Data Space Total: 107.4 GB
 Data Space Available: 44.49 GB
 Metadata Space Used: 2.245 MB
 Metadata Space Total: 2.147 GB
 Metadata Space Available: 2.145 GB
 Udev Sync Supported: true
 Deferred Removal Enabled: false
 Data loop file: /var/lib/docker/devicemapper/devicemapper/data
 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
 Library Version: 1.02.93-RHEL7 (2015-01-28)
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 3.10.0-229.el7.x86_64
Operating System: CentOS Linux 7 (Core)
CPUs: 1
Total Memory: 979.7 MiB
Name: localhost.localdomain
ID: PRVB:3SDE:YL4E:JT5P:5BIR:BUC5:PHXI:HG4B:P753:Y2BI:U7OU:YPGC