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