github.com/flavio/docker@v0.1.3-0.20170117145210-f63d1a6eec47/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 overlay2 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.13.0 60 Storage Driver: overlay2 61 Backing Filesystem: extfs 62 Supports d_type: true 63 Native Overlay Diff: false 64 Logging Driver: json-file 65 Cgroup Driver: cgroupfs 66 Plugins: 67 Volume: local 68 Network: bridge host macvlan null overlay 69 Swarm: active 70 NodeID: rdjq45w1op418waxlairloqbm 71 Is Manager: true 72 ClusterID: te8kdyw33n36fqiz74bfjeixd 73 Managers: 1 74 Nodes: 2 75 Orchestration: 76 Task History Retention Limit: 5 77 Raft: 78 Snapshot Interval: 10000 79 Number of Old Snapshots to Retain: 0 80 Heartbeat Tick: 1 81 Election Tick: 3 82 Dispatcher: 83 Heartbeat Period: 5 seconds 84 CA Configuration: 85 Expiry Duration: 3 months 86 Node Address: 172.16.66.128 172.16.66.129 87 Manager Addresses: 88 172.16.66.128:2477 89 Runtimes: runc 90 Default Runtime: runc 91 Init Binary: docker-init 92 containerd version: 8517738ba4b82aff5662c97ca4627e7e4d03b531 93 runc version: ac031b5bf1cc92239461125f4c1ffb760522bbf2 94 init version: N/A (expected: v0.13.0) 95 Security Options: 96 apparmor 97 seccomp 98 Profile: default 99 Kernel Version: 4.4.0-31-generic 100 Operating System: Ubuntu 16.04.1 LTS 101 OSType: linux 102 Architecture: x86_64 103 CPUs: 2 104 Total Memory: 1.937 GiB 105 Name: ubuntu 106 ID: H52R:7ZR6:EIIA:76JG:ORIY:BVKF:GSFU:HNPG:B5MK:APSC:SZ3Q:N326 107 Docker Root Dir: /var/lib/docker 108 Debug Mode (client): true 109 Debug Mode (server): true 110 File Descriptors: 30 111 Goroutines: 123 112 System Time: 2016-11-12T17:24:37.955404361-08:00 113 EventsListeners: 0 114 Http Proxy: http://test:test@proxy.example.com:8080 115 Https Proxy: https://test:test@proxy.example.com:8080 116 No Proxy: localhost,127.0.0.1,docker-registry.somecorporation.com 117 Registry: https://index.docker.io/v1/ 118 WARNING: No swap limit support 119 Labels: 120 storage=ssd 121 staging=true 122 Experimental: false 123 Insecure Registries: 124 127.0.0.0/8 125 Registry Mirrors: 126 http://192.168.1.2/ 127 http://registry-mirror.example.com:5000/ 128 Live Restore Enabled: false 129 130 The global `-D` option tells all `docker` commands to output debug information. 131 132 The example below shows the output for a daemon running on Red Hat Enterprise Linux, 133 using the devicemapper storage driver. As can be seen in the output, additional 134 information about the devicemapper storage driver is shown: 135 136 $ docker info 137 Containers: 14 138 Running: 3 139 Paused: 1 140 Stopped: 10 141 Images: 52 142 Server Version: 1.10.3 143 Storage Driver: devicemapper 144 Pool Name: docker-202:2-25583803-pool 145 Pool Blocksize: 65.54 kB 146 Base Device Size: 10.74 GB 147 Backing Filesystem: xfs 148 Data file: /dev/loop0 149 Metadata file: /dev/loop1 150 Data Space Used: 1.68 GB 151 Data Space Total: 107.4 GB 152 Data Space Available: 7.548 GB 153 Metadata Space Used: 2.322 MB 154 Metadata Space Total: 2.147 GB 155 Metadata Space Available: 2.145 GB 156 Udev Sync Supported: true 157 Deferred Removal Enabled: false 158 Deferred Deletion Enabled: false 159 Deferred Deleted Device Count: 0 160 Data loop file: /var/lib/docker/devicemapper/devicemapper/data 161 Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata 162 Library Version: 1.02.107-RHEL7 (2015-12-01) 163 Execution Driver: native-0.2 164 Logging Driver: json-file 165 Plugins: 166 Volume: local 167 Network: null host bridge 168 Kernel Version: 3.10.0-327.el7.x86_64 169 Operating System: Red Hat Enterprise Linux Server 7.2 (Maipo) 170 OSType: linux 171 Architecture: x86_64 172 CPUs: 1 173 Total Memory: 991.7 MiB 174 Name: ip-172-30-0-91.ec2.internal 175 ID: I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S 176 Docker Root Dir: /var/lib/docker 177 Debug mode (client): false 178 Debug mode (server): false 179 Username: gordontheturtle 180 Registry: https://index.docker.io/v1/ 181 Insecure registries: 182 myinsecurehost:5000 183 127.0.0.0/8 184 185 You can also specify the output format: 186 187 $ docker info --format '{{json .}}' 188 {"ID":"I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S","Containers":14, ...} 189 190 Here is a sample output for a daemon running on Windows Server 2016: 191 192 E:\docker>docker info 193 Containers: 1 194 Running: 0 195 Paused: 0 196 Stopped: 1 197 Images: 17 198 Server Version: 1.13.0 199 Storage Driver: windowsfilter 200 Windows: 201 Logging Driver: json-file 202 Plugins: 203 Volume: local 204 Network: nat null overlay 205 Swarm: inactive 206 Default Isolation: process 207 Kernel Version: 10.0 14393 (14393.206.amd64fre.rs1_release.160912-1937) 208 Operating System: Windows Server 2016 Datacenter 209 OSType: windows 210 Architecture: x86_64 211 CPUs: 8 212 Total Memory: 3.999 GiB 213 Name: WIN-V0V70C0LU5P 214 ID: NYMS:B5VK:UMSL:FVDZ:EWB5:FKVK:LPFL:FJMQ:H6FT:BZJ6:L2TD:XH62 215 Docker Root Dir: C:\control 216 Debug Mode (client): false 217 Debug Mode (server): false 218 Registry: https://index.docker.io/v1/ 219 Insecure Registries: 220 127.0.0.0/8 221 Registry Mirrors: 222 http://192.168.1.2/ 223 http://registry-mirror.example.com:5000/ 224 Live Restore Enabled: false