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