github.com/vieux/docker@v0.6.3-0.20161004191708-e097c2a938c7/docs/reference/commandline/info.md (about)

     1  <!--[metadata]>
     2  +++
     3  title = "info"
     4  description = "The info command description and usage"
     5  keywords = ["display, docker, information"]
     6  [menu.main]
     7  parent = "smn_cli"
     8  +++
     9  <![end-metadata]-->
    10  
    11  # info
    12  
    13  ```markdown
    14  Usage:  docker info [OPTIONS]
    15  
    16  Display system-wide information
    17  
    18  Options:
    19    -f, --format string   Format the output using the given go template
    20        --help            Print usage
    21  ```
    22  
    23  This command displays system wide information regarding the Docker installation.
    24  Information displayed includes the kernel version, number of containers and images.
    25  The number of images shown is the number of unique images. The same image tagged
    26  under different names is counted only once.
    27  
    28  If a format is specified, the given template will be executed instead of the
    29  default format. Go's [text/template](http://golang.org/pkg/text/template/) package
    30  describes all the details of the format.
    31  
    32  Depending on the storage driver in use, additional information can be shown, such
    33  as pool name, data file, metadata file, data space used, total data space, metadata
    34  space used, and total metadata space.
    35  
    36  The data file is where the images are stored and the metadata file is where the
    37  meta data regarding those images are stored. When run for the first time Docker
    38  allocates a certain amount of data space and meta data space from the space
    39  available on the volume where `/var/lib/docker` is mounted.
    40  
    41  # Examples
    42  
    43  ## Display Docker system information
    44  
    45  Here is a sample output for a daemon running on Ubuntu, using the overlay
    46  storage driver and a node that is part of a 2-node swarm:
    47  
    48      $ docker -D info
    49      Containers: 14
    50       Running: 3
    51       Paused: 1
    52       Stopped: 10
    53      Images: 52
    54      Server Version: 1.12.0-dev
    55      Storage Driver: overlay
    56       Backing Filesystem: extfs
    57      Logging Driver: json-file
    58      Cgroup Driver: cgroupfs
    59      Plugins:
    60       Volume: local
    61       Network: bridge null host overlay
    62      Swarm: 
    63       NodeID: 0gac67oclbxq7
    64       Is Manager: true
    65       Managers: 2
    66       Nodes: 2
    67      Runtimes: default
    68      Default Runtime: default
    69      Security Options: apparmor seccomp
    70      Kernel Version: 4.4.0-21-generic
    71      Operating System: Ubuntu 16.04 LTS
    72      OSType: linux
    73      Architecture: x86_64
    74      CPUs: 24
    75      Total Memory: 62.86 GiB
    76      Name: docker
    77      ID: I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S
    78      Docker Root Dir: /var/lib/docker
    79      Debug mode (client): true
    80      Debug mode (server): true
    81       File Descriptors: 59
    82       Goroutines: 159
    83       System Time: 2016-04-26T10:04:06.14689342-04:00
    84       EventsListeners: 0
    85      Http Proxy: http://test:test@localhost:8080
    86      Https Proxy: https://test:test@localhost:8080
    87      No Proxy: localhost,127.0.0.1,docker-registry.somecorporation.com
    88      Username: svendowideit
    89      Registry: https://index.docker.io/v1/
    90      WARNING: No swap limit support
    91      Labels:
    92       storage=ssd
    93       staging=true
    94      Insecure registries:
    95       myinsecurehost:5000
    96       127.0.0.0/8
    97  
    98  The global `-D` option tells all `docker` commands to output debug information.
    99  
   100  The example below shows the output for a daemon running on Red Hat Enterprise Linux,
   101  using the devicemapper storage driver. As can be seen in the output, additional
   102  information about the devicemapper storage driver is shown:
   103  
   104      $ docker info
   105      Containers: 14
   106       Running: 3
   107       Paused: 1
   108       Stopped: 10
   109      Untagged Images: 52
   110      Server Version: 1.10.3
   111      Storage Driver: devicemapper
   112       Pool Name: docker-202:2-25583803-pool
   113       Pool Blocksize: 65.54 kB
   114       Base Device Size: 10.74 GB
   115       Backing Filesystem: xfs
   116       Data file: /dev/loop0
   117       Metadata file: /dev/loop1
   118       Data Space Used: 1.68 GB
   119       Data Space Total: 107.4 GB
   120       Data Space Available: 7.548 GB
   121       Metadata Space Used: 2.322 MB
   122       Metadata Space Total: 2.147 GB
   123       Metadata Space Available: 2.145 GB
   124       Udev Sync Supported: true
   125       Deferred Removal Enabled: false
   126       Deferred Deletion Enabled: false
   127       Deferred Deleted Device Count: 0
   128       Data loop file: /var/lib/docker/devicemapper/devicemapper/data
   129       Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
   130       Library Version: 1.02.107-RHEL7 (2015-12-01)
   131      Execution Driver: native-0.2
   132      Logging Driver: json-file
   133      Plugins:
   134       Volume: local
   135       Network: null host bridge
   136      Kernel Version: 3.10.0-327.el7.x86_64
   137      Operating System: Red Hat Enterprise Linux Server 7.2 (Maipo)
   138      OSType: linux
   139      Architecture: x86_64
   140      CPUs: 1
   141      Total Memory: 991.7 MiB
   142      Name: ip-172-30-0-91.ec2.internal
   143      ID: I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S
   144      Docker Root Dir: /var/lib/docker
   145      Debug mode (client): false
   146      Debug mode (server): false
   147      Username: xyz
   148      Registry: https://index.docker.io/v1/
   149      Insecure registries:
   150       myinsecurehost:5000
   151       127.0.0.0/8
   152  
   153  You can also specify the output format:
   154  
   155      $ docker info --format '{{json .}}'
   156  	{"ID":"I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S","Containers":14, ...}
   157  
   158  Here is a sample output for a daemon running on Windows Server 2016:
   159  
   160      E:\docker>docker info
   161      Containers: 1
   162       Running: 0
   163       Paused: 0
   164       Stopped: 1
   165      Images: 17
   166      Server Version: 1.13.0-dev
   167      Storage Driver: windowsfilter
   168       Windows:
   169      Logging Driver: json-file
   170      Plugins:
   171       Volume: local
   172       Network: nat null overlay
   173      Swarm: inactive
   174      Default Isolation: process
   175      Kernel Version: 10.0 14393 (14393.206.amd64fre.rs1_release.160912-1937)
   176      Operating System: Windows Server 2016 Datacenter
   177      OSType: windows
   178      Architecture: x86_64
   179      CPUs: 8
   180      Total Memory: 3.999 GiB
   181      Name: WIN-V0V70C0LU5P
   182      ID: NYMS:B5VK:UMSL:FVDZ:EWB5:FKVK:LPFL:FJMQ:H6FT:BZJ6:L2TD:XH62
   183      Docker Root Dir: C:\control
   184      Debug Mode (client): false
   185      Debug Mode (server): false
   186      Registry: https://index.docker.io/v1/
   187      Insecure Registries:
   188       127.0.0.0/8
   189      Live Restore Enabled: false