github.com/ph/moby@v1.13.1/man/docker-info.1.md (about)

     1  % DOCKER(1) Docker User Manuals
     2  % Docker Community
     3  % JUNE 2014
     4  # NAME
     5  docker-info - Display system-wide information
     6  
     7  # SYNOPSIS
     8  **docker info**
     9  [**--help**]
    10  [**-f**|**--format**[=*FORMAT*]]
    11  
    12  # DESCRIPTION
    13  This command displays system wide information regarding the Docker installation.
    14  Information displayed includes the kernel version, number of containers and images.
    15  The number of images shown is the number of unique images. The same image tagged
    16  under different names is counted only once.
    17  
    18  If a format is specified, the given template will be executed instead of the
    19  default format. Go's **text/template** package
    20  describes all the details of the format.
    21  
    22  Depending on the storage driver in use, additional information can be shown, such
    23  as pool name, data file, metadata file, data space used, total data space, metadata
    24  space used, and total metadata space.
    25  
    26  The data file is where the images are stored and the metadata file is where the
    27  meta data regarding those images are stored. When run for the first time Docker
    28  allocates a certain amount of data space and meta data space from the space
    29  available on the volume where `/var/lib/docker` is mounted.
    30  
    31  # OPTIONS
    32  **--help**
    33    Print usage statement
    34  
    35  **-f**, **--format**=""
    36    Format the output using the given Go template
    37  
    38  # EXAMPLES
    39  
    40  ## Display Docker system information
    41  
    42  Here is a sample output for a daemon running on Ubuntu, using the overlay2
    43  storage driver:
    44  
    45      $ docker -D info
    46      Containers: 14
    47       Running: 3
    48       Paused: 1
    49       Stopped: 10
    50      Images: 52
    51      Server Version: 1.13.0
    52      Storage Driver: overlay2
    53       Backing Filesystem: extfs
    54       Supports d_type: true
    55       Native Overlay Diff: false
    56      Logging Driver: json-file
    57      Cgroup Driver: cgroupfs
    58      Plugins:
    59       Volume: local
    60       Network: bridge host macvlan null overlay
    61      Swarm: active
    62       NodeID: rdjq45w1op418waxlairloqbm
    63       Is Manager: true
    64       ClusterID: te8kdyw33n36fqiz74bfjeixd
    65       Managers: 1
    66       Nodes: 2
    67       Orchestration:
    68        Task History Retention Limit: 5
    69       Raft:
    70        Snapshot Interval: 10000
    71        Number of Old Snapshots to Retain: 0
    72        Heartbeat Tick: 1
    73        Election Tick: 3
    74       Dispatcher:
    75        Heartbeat Period: 5 seconds
    76       CA Configuration:
    77        Expiry Duration: 3 months
    78       Node Address: 172.16.66.128 172.16.66.129
    79       Manager Addresses:
    80        172.16.66.128:2477
    81      Runtimes: runc
    82      Default Runtime: runc
    83      Init Binary: docker-init
    84      containerd version: 8517738ba4b82aff5662c97ca4627e7e4d03b531
    85      runc version: ac031b5bf1cc92239461125f4c1ffb760522bbf2
    86      init version: N/A (expected: v0.13.0)
    87      Security Options:
    88       apparmor
    89       seccomp
    90        Profile: default
    91      Kernel Version: 4.4.0-31-generic
    92      Operating System: Ubuntu 16.04.1 LTS
    93      OSType: linux
    94      Architecture: x86_64
    95      CPUs: 2
    96      Total Memory: 1.937 GiB
    97      Name: ubuntu
    98      ID: H52R:7ZR6:EIIA:76JG:ORIY:BVKF:GSFU:HNPG:B5MK:APSC:SZ3Q:N326
    99      Docker Root Dir: /var/lib/docker
   100      Debug Mode (client): true
   101      Debug Mode (server): true
   102       File Descriptors: 30
   103       Goroutines: 123
   104       System Time: 2016-11-12T17:24:37.955404361-08:00
   105       EventsListeners: 0
   106      Http Proxy: http://test:test@proxy.example.com:8080
   107      Https Proxy: https://test:test@proxy.example.com:8080
   108      No Proxy: localhost,127.0.0.1,docker-registry.somecorporation.com
   109      Registry: https://index.docker.io/v1/
   110      WARNING: No swap limit support
   111      Labels:
   112       storage=ssd
   113       staging=true
   114      Experimental: false
   115      Insecure Registries:
   116       127.0.0.0/8
   117      Registry Mirrors:
   118        http://192.168.1.2/
   119        http://registry-mirror.example.com:5000/
   120      Live Restore Enabled: false
   121  
   122  
   123  
   124  The global `-D` option tells all `docker` commands to output debug information.
   125  
   126  The example below shows the output for a daemon running on Red Hat Enterprise Linux,
   127  using the devicemapper storage driver. As can be seen in the output, additional
   128  information about the devicemapper storage driver is shown:
   129  
   130      $ docker info
   131      Containers: 14
   132       Running: 3
   133       Paused: 1
   134       Stopped: 10
   135      Untagged Images: 52
   136      Server Version: 1.10.3
   137      Storage Driver: devicemapper
   138       Pool Name: docker-202:2-25583803-pool
   139       Pool Blocksize: 65.54 kB
   140       Base Device Size: 10.74 GB
   141       Backing Filesystem: xfs
   142       Data file: /dev/loop0
   143       Metadata file: /dev/loop1
   144       Data Space Used: 1.68 GB
   145       Data Space Total: 107.4 GB
   146       Data Space Available: 7.548 GB
   147       Metadata Space Used: 2.322 MB
   148       Metadata Space Total: 2.147 GB
   149       Metadata Space Available: 2.145 GB
   150       Udev Sync Supported: true
   151       Deferred Removal Enabled: false
   152       Deferred Deletion Enabled: false
   153       Deferred Deleted Device Count: 0
   154       Data loop file: /var/lib/docker/devicemapper/devicemapper/data
   155       Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
   156       Library Version: 1.02.107-RHEL7 (2015-12-01)
   157      Execution Driver: native-0.2
   158      Logging Driver: json-file
   159      Plugins:
   160       Volume: local
   161       Network: null host bridge
   162      Kernel Version: 3.10.0-327.el7.x86_64
   163      Operating System: Red Hat Enterprise Linux Server 7.2 (Maipo)
   164      OSType: linux
   165      Architecture: x86_64
   166      CPUs: 1
   167      Total Memory: 991.7 MiB
   168      Name: ip-172-30-0-91.ec2.internal
   169      ID: I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S
   170      Docker Root Dir: /var/lib/docker
   171      Debug mode (client): false
   172      Debug mode (server): false
   173      Username: gordontheturtle
   174      Registry: https://index.docker.io/v1/
   175      Insecure registries:
   176       myinsecurehost:5000
   177       127.0.0.0/8
   178  
   179  You can also specify the output format:
   180  
   181      $ docker info --format '{{json .}}'
   182  	{"ID":"I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S","Containers":14, ...}
   183  
   184  # HISTORY
   185  April 2014, Originally compiled by William Henry (whenry at redhat dot com)
   186  based on docker.com source material and internal work.
   187  June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>