github.com/kim0/docker@v0.6.2-0.20161130212042-4addda3f07e7/docs/reference/commandline/info.md (about)

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