github.com/pwn-term/docker@v0.0.0-20210616085119-6e977cce2565/cli/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  # info
     8  
     9  ```markdown
    10  Usage:  docker info [OPTIONS]
    11  
    12  Display system-wide information
    13  
    14  Options:
    15    -f, --format string   Format the output using the given Go template
    16        --help            Print usage
    17  ```
    18  
    19  ## Description
    20  
    21  This command displays system wide information regarding the Docker installation.
    22  Information displayed includes the kernel version, number of containers and images.
    23  The number of images shown is the number of unique images. The same image tagged
    24  under different names is counted only once.
    25  
    26  If a format is specified, the given template will be executed instead of the
    27  default format. Go's [text/template](http://golang.org/pkg/text/template/) package
    28  describes all the details of the format.
    29  
    30  Depending on the storage driver in use, additional information can be shown, such
    31  as pool name, data file, metadata file, data space used, total data space, metadata
    32  space used, and total metadata space.
    33  
    34  The data file is where the images are stored and the metadata file is where the
    35  meta data regarding those images are stored. When run for the first time Docker
    36  allocates a certain amount of data space and meta data space from the space
    37  available on the volume where `/var/lib/docker` is mounted.
    38  
    39  ## Examples
    40  
    41  ### Show output
    42  
    43  The example below shows the output for a daemon running on Red Hat Enterprise Linux,
    44  using the `devicemapper` storage driver. As can be seen in the output, additional
    45  information about the `devicemapper` storage driver is shown:
    46  
    47  ```bash
    48  $ docker info
    49  Client:
    50   Context:    default
    51   Debug Mode: false
    52  
    53  Server:
    54   Containers: 14
    55    Running: 3
    56    Paused: 1
    57    Stopped: 10
    58   Images: 52
    59   Server Version: 1.10.3
    60   Storage Driver: devicemapper
    61    Pool Name: docker-202:2-25583803-pool
    62    Pool Blocksize: 65.54 kB
    63    Base Device Size: 10.74 GB
    64    Backing Filesystem: xfs
    65    Data file: /dev/loop0
    66    Metadata file: /dev/loop1
    67    Data Space Used: 1.68 GB
    68    Data Space Total: 107.4 GB
    69    Data Space Available: 7.548 GB
    70    Metadata Space Used: 2.322 MB
    71    Metadata Space Total: 2.147 GB
    72    Metadata Space Available: 2.145 GB
    73    Udev Sync Supported: true
    74    Deferred Removal Enabled: false
    75    Deferred Deletion Enabled: false
    76    Deferred Deleted Device Count: 0
    77    Data loop file: /var/lib/docker/devicemapper/devicemapper/data
    78    Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
    79    Library Version: 1.02.107-RHEL7 (2015-12-01)
    80   Execution Driver: native-0.2
    81   Logging Driver: json-file
    82   Plugins:
    83    Volume: local
    84    Network: null host bridge
    85   Kernel Version: 3.10.0-327.el7.x86_64
    86   Operating System: Red Hat Enterprise Linux Server 7.2 (Maipo)
    87   OSType: linux
    88   Architecture: x86_64
    89   CPUs: 1
    90   Total Memory: 991.7 MiB
    91   Name: ip-172-30-0-91.ec2.internal
    92   ID: I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S
    93   Docker Root Dir: /var/lib/docker
    94   Debug Mode: false
    95   Username: gordontheturtle
    96   Registry: https://index.docker.io/v1/
    97   Insecure registries:
    98    myinsecurehost:5000
    99    127.0.0.0/8
   100  ```
   101  
   102  ### Show debugging output
   103  
   104  Here is a sample output for a daemon running on Ubuntu, using the overlay2
   105  storage driver and a node that is part of a 2-node swarm:
   106  
   107  ```bash
   108  $ docker -D info
   109  Client:
   110   Context:    default
   111   Debug Mode: true
   112  
   113  Server:
   114   Containers: 14
   115    Running: 3
   116    Paused: 1
   117    Stopped: 10
   118   Images: 52
   119   Server Version: 1.13.0
   120   Storage Driver: overlay2
   121    Backing Filesystem: extfs
   122    Supports d_type: true
   123    Native Overlay Diff: false
   124   Logging Driver: json-file
   125   Cgroup Driver: cgroupfs
   126   Plugins:
   127    Volume: local
   128    Network: bridge host macvlan null overlay
   129   Swarm: active
   130    NodeID: rdjq45w1op418waxlairloqbm
   131    Is Manager: true
   132    ClusterID: te8kdyw33n36fqiz74bfjeixd
   133    Managers: 1
   134    Nodes: 2
   135    Orchestration:
   136     Task History Retention Limit: 5
   137    Raft:
   138     Snapshot Interval: 10000
   139     Number of Old Snapshots to Retain: 0
   140     Heartbeat Tick: 1
   141     Election Tick: 3
   142    Dispatcher:
   143     Heartbeat Period: 5 seconds
   144    CA Configuration:
   145     Expiry Duration: 3 months
   146    Root Rotation In Progress: false
   147    Node Address: 172.16.66.128 172.16.66.129
   148    Manager Addresses:
   149     172.16.66.128:2477
   150   Runtimes: runc
   151   Default Runtime: runc
   152   Init Binary: docker-init
   153   containerd version: 8517738ba4b82aff5662c97ca4627e7e4d03b531
   154   runc version: ac031b5bf1cc92239461125f4c1ffb760522bbf2
   155   init version: N/A (expected: v0.13.0)
   156   Security Options:
   157    apparmor
   158    seccomp
   159     Profile: default
   160   Kernel Version: 4.4.0-31-generic
   161   Operating System: Ubuntu 16.04.1 LTS
   162   OSType: linux
   163   Architecture: x86_64
   164   CPUs: 2
   165   Total Memory: 1.937 GiB
   166   Name: ubuntu
   167   ID: H52R:7ZR6:EIIA:76JG:ORIY:BVKF:GSFU:HNPG:B5MK:APSC:SZ3Q:N326
   168   Docker Root Dir: /var/lib/docker
   169   Debug Mode: true
   170    File Descriptors: 30
   171    Goroutines: 123
   172    System Time: 2016-11-12T17:24:37.955404361-08:00
   173    EventsListeners: 0
   174   Http Proxy: http://test:test@proxy.example.com:8080
   175   Https Proxy: https://test:test@proxy.example.com:8080
   176   No Proxy: localhost,127.0.0.1,docker-registry.somecorporation.com
   177   Registry: https://index.docker.io/v1/
   178   WARNING: No swap limit support
   179   Labels:
   180    storage=ssd
   181    staging=true
   182   Experimental: false
   183   Insecure Registries:
   184    127.0.0.0/8
   185   Registry Mirrors:
   186     http://192.168.1.2/
   187     http://registry-mirror.example.com:5000/
   188   Live Restore Enabled: false
   189  ```
   190  
   191  The global `-D` option causes all `docker` commands to output debug information.
   192  
   193  ### Format the output
   194  
   195  You can also specify the output format:
   196  
   197  ```bash
   198  $ docker info --format '{{json .}}'
   199  
   200  {"ID":"I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S","Containers":14, ...}
   201  ```
   202  
   203  ### Run `docker info` on Windows
   204  
   205  Here is a sample output for a daemon running on Windows Server 2016:
   206  
   207  ```console
   208  E:\docker>docker info
   209  Client:
   210   Context:    default
   211   Debug Mode: false
   212  
   213  Server:
   214   Containers: 1
   215    Running: 0
   216    Paused: 0
   217    Stopped: 1
   218   Images: 17
   219   Server Version: 1.13.0
   220   Storage Driver: windowsfilter
   221    Windows:
   222   Logging Driver: json-file
   223   Plugins:
   224    Volume: local
   225    Network: nat null overlay
   226   Swarm: inactive
   227   Default Isolation: process
   228   Kernel Version: 10.0 14393 (14393.206.amd64fre.rs1_release.160912-1937)
   229   Operating System: Windows Server 2016 Datacenter
   230   OSType: windows
   231   Architecture: x86_64
   232   CPUs: 8
   233   Total Memory: 3.999 GiB
   234   Name: WIN-V0V70C0LU5P
   235   ID: NYMS:B5VK:UMSL:FVDZ:EWB5:FKVK:LPFL:FJMQ:H6FT:BZJ6:L2TD:XH62
   236   Docker Root Dir: C:\control
   237   Debug Mode: false
   238   Registry: https://index.docker.io/v1/
   239   Insecure Registries:
   240    127.0.0.0/8
   241   Registry Mirrors:
   242     http://192.168.1.2/
   243     http://registry-mirror.example.com:5000/
   244   Live Restore Enabled: false
   245  ```