github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/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](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 Ubuntu Linux, 44 using the `overlay2` storage driver. As can be seen in the output, additional 45 information about the `overlay2` storage driver is shown: 46 47 ```console 48 $ docker info 49 50 Client: 51 Context: default 52 Debug Mode: false 53 Plugins: 54 buildx: Docker Buildx (Docker Inc.) 55 Version: v0.8.2 56 Path: /usr/libexec/docker/cli-plugins/docker-buildx 57 compose: Docker Compose (Docker Inc.) 58 Version: v2.6.0 59 Path: /usr/libexec/docker/cli-plugins/docker-compose 60 scan: Docker Scan (Docker Inc.) 61 Version: v0.17.0 62 Path: /usr/libexec/docker/cli-plugins/docker-scan 63 64 Server: 65 Containers: 14 66 Running: 3 67 Paused: 1 68 Stopped: 10 69 Images: 52 70 Server Version: 22.06.0 71 Storage Driver: overlay2 72 Backing Filesystem: extfs 73 Supports d_type: true 74 Using metacopy: false 75 Native Overlay Diff: true 76 userxattr: false 77 Logging Driver: json-file 78 Cgroup Driver: systemd 79 Cgroup Version: 2 80 Plugins: 81 Volume: local 82 Network: bridge host ipvlan macvlan null overlay 83 Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog 84 Swarm: inactive 85 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc 86 Default Runtime: runc 87 Init Binary: docker-init 88 containerd version: 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16 89 runc version: v1.1.1-0-g52de29d 90 init version: de40ad0 91 Security Options: 92 apparmor 93 seccomp 94 Profile: builtin 95 cgroupns 96 Kernel Version: 5.15.0-25-generic 97 Operating System: Ubuntu 22.04 LTS 98 OSType: linux 99 Architecture: x86_64 100 CPUs: 1 101 Total Memory: 991.7 MiB 102 Name: ip-172-30-0-91.ec2.internal 103 ID: 4cee4408-10d2-4e17-891c-a41736ac4536 104 Docker Root Dir: /var/lib/docker 105 Debug Mode: false 106 Username: gordontheturtle 107 Registry: https://index.docker.io/v1/ 108 Experimental: false 109 Insecure registries: 110 myinsecurehost:5000 111 127.0.0.0/8 112 Live Restore Enabled: false 113 ``` 114 115 ### <a name="format"></a> Format the output (--format) 116 117 You can also specify the output format: 118 119 ```console 120 $ docker info --format '{{json .}}' 121 122 {"ID":"I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S","Containers":14, ...} 123 ``` 124 125 ### Run `docker info` on Windows 126 127 Here is a sample output for a daemon running on Windows Server: 128 129 ```console 130 C:\> docker info 131 132 Client: 133 Context: default 134 Debug Mode: false 135 Plugins: 136 buildx: Docker Buildx (Docker Inc., v0.8.2-docker) 137 compose: Docker Compose (Docker Inc., v2.6.0) 138 scan: Docker Scan (Docker Inc., v0.17.0) 139 140 Server: 141 Containers: 1 142 Running: 0 143 Paused: 0 144 Stopped: 1 145 Images: 17 146 Server Version: 20.10.16 147 Storage Driver: windowsfilter 148 Logging Driver: json-file 149 Plugins: 150 Volume: local 151 Network: ics internal l2bridge l2tunnel nat null overlay private transparent 152 Log: awslogs etwlogs fluentd gcplogs gelf json-file local logentries splunk syslog 153 Swarm: inactive 154 Default Isolation: process 155 Kernel Version: 10.0 20348 (20348.1.amd64fre.fe_release.210507-1500) 156 Operating System: Microsoft Windows Server Version 21H2 (OS Build 20348.707) 157 OSType: windows 158 Architecture: x86_64 159 CPUs: 8 160 Total Memory: 3.999 GiB 161 Name: WIN-V0V70C0LU5P 162 ID: 2880d38d-464e-4d01-91bd-c76f33ba3981 163 Docker Root Dir: C:\ProgramData\docker 164 Debug Mode: false 165 Registry: https://index.docker.io/v1/ 166 Experimental: true 167 Insecure Registries: 168 myregistry:5000 169 127.0.0.0/8 170 Registry Mirrors: 171 http://192.168.1.2/ 172 http://registry-mirror.example.com:5000/ 173 Live Restore Enabled: false 174 ```