github.com/kim0/docker@v0.6.2-0.20161130212042-4addda3f07e7/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 overlay
    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.12.0-dev
    52      Storage Driver: overlay
    53       Backing Filesystem: extfs
    54      Logging Driver: json-file
    55      Cgroup Driver: cgroupfs
    56      Plugins:
    57       Volume: local
    58       Network: bridge null host overlay
    59      Swarm: 
    60       NodeID: 0gac67oclbxq7
    61       IsManager: YES
    62       Managers: 2
    63       Nodes: 2
    64      Runtimes: default
    65      Default Runtime: default
    66      Security Options: apparmor seccomp
    67      Kernel Version: 4.4.0-21-generic
    68      Operating System: Ubuntu 16.04 LTS
    69      OSType: linux
    70      Architecture: x86_64
    71      CPUs: 24
    72      Total Memory: 62.86 GiB
    73      Name: docker
    74      ID: I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S
    75      Docker Root Dir: /var/lib/docker
    76      Debug mode (client): true
    77      Debug mode (server): true
    78       File Descriptors: 59
    79       Goroutines: 159
    80       System Time: 2016-04-26T10:04:06.14689342-04:00
    81       EventsListeners: 0
    82      Http Proxy: http://test:test@localhost:8080
    83      Https Proxy: https://test:test@localhost:8080
    84      No Proxy: localhost,127.0.0.1,docker-registry.somecorporation.com
    85      Username: svendowideit
    86      Registry: https://index.docker.io/v1/
    87      WARNING: No swap limit support
    88      Labels:
    89       storage=ssd
    90       staging=true
    91      Insecure registries:
    92       myinsecurehost:5000
    93       127.0.0.0/8
    94  
    95  The global `-D` option tells all `docker` commands to output debug information.
    96  
    97  The example below shows the output for a daemon running on Red Hat Enterprise Linux,
    98  using the devicemapper storage driver. As can be seen in the output, additional
    99  information about the devicemapper storage driver is shown:
   100  
   101      $ docker info
   102      Containers: 14
   103       Running: 3
   104       Paused: 1
   105       Stopped: 10
   106      Untagged Images: 52
   107      Server Version: 1.10.3
   108      Storage Driver: devicemapper
   109       Pool Name: docker-202:2-25583803-pool
   110       Pool Blocksize: 65.54 kB
   111       Base Device Size: 10.74 GB
   112       Backing Filesystem: xfs
   113       Data file: /dev/loop0
   114       Metadata file: /dev/loop1
   115       Data Space Used: 1.68 GB
   116       Data Space Total: 107.4 GB
   117       Data Space Available: 7.548 GB
   118       Metadata Space Used: 2.322 MB
   119       Metadata Space Total: 2.147 GB
   120       Metadata Space Available: 2.145 GB
   121       Udev Sync Supported: true
   122       Deferred Removal Enabled: false
   123       Deferred Deletion Enabled: false
   124       Deferred Deleted Device Count: 0
   125       Data loop file: /var/lib/docker/devicemapper/devicemapper/data
   126       Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
   127       Library Version: 1.02.107-RHEL7 (2015-12-01)
   128      Execution Driver: native-0.2
   129      Logging Driver: json-file
   130      Plugins:
   131       Volume: local
   132       Network: null host bridge
   133      Kernel Version: 3.10.0-327.el7.x86_64
   134      Operating System: Red Hat Enterprise Linux Server 7.2 (Maipo)
   135      OSType: linux
   136      Architecture: x86_64
   137      CPUs: 1
   138      Total Memory: 991.7 MiB
   139      Name: ip-172-30-0-91.ec2.internal
   140      ID: I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S
   141      Docker Root Dir: /var/lib/docker
   142      Debug mode (client): false
   143      Debug mode (server): false
   144      Username: xyz
   145      Registry: https://index.docker.io/v1/
   146      Insecure registries:
   147       myinsecurehost:5000
   148       127.0.0.0/8
   149  
   150  You can also specify the output format:
   151  
   152      $ docker info --format '{{json .}}'
   153  	{"ID":"I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S","Containers":14, ...}
   154  
   155  # HISTORY
   156  April 2014, Originally compiled by William Henry (whenry at redhat dot com)
   157  based on docker.com source material and internal work.
   158  June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>