github.com/justincormack/cli@v0.0.0-20201215022714-831ebeae9675/man/src/system/info.md (about)

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