2016-10-14 18:30:36 -04:00
|
|
|
---
|
|
|
|
title: "info"
|
|
|
|
description: "The info command description and usage"
|
2016-11-03 18:48:30 -04:00
|
|
|
keywords: "display, docker, information"
|
2016-10-14 18:30:36 -04:00
|
|
|
---
|
2015-06-21 16:41:38 -04:00
|
|
|
|
|
|
|
# info
|
|
|
|
|
2016-07-07 14:43:18 -04:00
|
|
|
```markdown
|
2016-08-31 02:18:41 -04:00
|
|
|
Usage: docker info [OPTIONS]
|
2015-06-21 16:41:38 -04:00
|
|
|
|
2016-07-07 14:43:18 -04:00
|
|
|
Display system-wide information
|
2015-10-03 11:56:41 -04:00
|
|
|
|
2016-07-07 14:43:18 -04:00
|
|
|
Options:
|
2016-10-18 06:50:11 -04:00
|
|
|
-f, --format string Format the output using the given Go template
|
2016-06-21 05:15:17 -04:00
|
|
|
--help Print usage
|
2016-07-07 14:43:18 -04:00
|
|
|
```
|
2016-03-14 00:53:30 -04:00
|
|
|
|
2017-02-07 18:42:48 -05:00
|
|
|
## Description
|
|
|
|
|
2016-03-14 00:53:30 -04:00
|
|
|
This command displays system wide information regarding the Docker installation.
|
|
|
|
Information displayed includes the kernel version, number of containers and images.
|
|
|
|
The number of images shown is the number of unique images. The same image tagged
|
|
|
|
under different names is counted only once.
|
|
|
|
|
2016-06-21 05:15:17 -04:00
|
|
|
If a format is specified, the given template will be executed instead of the
|
2021-10-14 18:04:36 -04:00
|
|
|
default format. Go's [text/template](https://golang.org/pkg/text/template/) package
|
2016-06-21 05:15:17 -04:00
|
|
|
describes all the details of the format.
|
|
|
|
|
2016-03-14 00:53:30 -04:00
|
|
|
Depending on the storage driver in use, additional information can be shown, such
|
|
|
|
as pool name, data file, metadata file, data space used, total data space, metadata
|
|
|
|
space used, and total metadata space.
|
|
|
|
|
|
|
|
The data file is where the images are stored and the metadata file is where the
|
|
|
|
meta data regarding those images are stored. When run for the first time Docker
|
|
|
|
allocates a certain amount of data space and meta data space from the space
|
|
|
|
available on the volume where `/var/lib/docker` is mounted.
|
|
|
|
|
2017-02-07 18:42:48 -05:00
|
|
|
## Examples
|
|
|
|
|
|
|
|
### Show output
|
|
|
|
|
2022-06-06 09:22:32 -04:00
|
|
|
The example below shows the output for a daemon running on Ubuntu Linux,
|
|
|
|
using the `overlay2` storage driver. As can be seen in the output, additional
|
|
|
|
information about the `overlay2` storage driver is shown:
|
2017-02-07 18:42:48 -05:00
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2017-02-07 18:42:48 -05:00
|
|
|
$ docker info
|
2021-08-21 08:54:14 -04:00
|
|
|
|
2019-01-25 08:10:59 -05:00
|
|
|
Client:
|
2020-05-07 07:28:37 -04:00
|
|
|
Context: default
|
2019-01-25 08:10:59 -05:00
|
|
|
Debug Mode: false
|
|
|
|
Plugins:
|
2022-06-06 09:22:32 -04:00
|
|
|
buildx: Docker Buildx (Docker Inc.)
|
|
|
|
Version: v0.8.2
|
|
|
|
Path: /usr/libexec/docker/cli-plugins/docker-buildx
|
|
|
|
compose: Docker Compose (Docker Inc.)
|
|
|
|
Version: v2.6.0
|
|
|
|
Path: /usr/libexec/docker/cli-plugins/docker-compose
|
|
|
|
scan: Docker Scan (Docker Inc.)
|
|
|
|
Version: v0.17.0
|
|
|
|
Path: /usr/libexec/docker/cli-plugins/docker-scan
|
2019-01-25 08:10:59 -05:00
|
|
|
|
|
|
|
Server:
|
|
|
|
Containers: 14
|
|
|
|
Running: 3
|
|
|
|
Paused: 1
|
|
|
|
Stopped: 10
|
|
|
|
Images: 52
|
2022-06-06 09:22:32 -04:00
|
|
|
Server Version: 22.06.0
|
2019-01-25 08:10:59 -05:00
|
|
|
Storage Driver: overlay2
|
|
|
|
Backing Filesystem: extfs
|
|
|
|
Supports d_type: true
|
2022-06-06 09:22:32 -04:00
|
|
|
Using metacopy: false
|
|
|
|
Native Overlay Diff: true
|
|
|
|
userxattr: false
|
2019-01-25 08:10:59 -05:00
|
|
|
Logging Driver: json-file
|
2022-06-06 09:22:32 -04:00
|
|
|
Cgroup Driver: systemd
|
|
|
|
Cgroup Version: 2
|
2019-01-25 08:10:59 -05:00
|
|
|
Plugins:
|
|
|
|
Volume: local
|
2022-06-06 09:22:32 -04:00
|
|
|
Network: bridge host ipvlan macvlan null overlay
|
|
|
|
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
|
|
|
|
Swarm: inactive
|
|
|
|
Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
|
2019-01-25 08:10:59 -05:00
|
|
|
Default Runtime: runc
|
|
|
|
Init Binary: docker-init
|
2022-06-06 09:22:32 -04:00
|
|
|
containerd version: 212e8b6fa2f44b9c21b2798135fc6fb7c53efc16
|
|
|
|
runc version: v1.1.1-0-g52de29d
|
|
|
|
init version: de40ad0
|
2019-01-25 08:10:59 -05:00
|
|
|
Security Options:
|
|
|
|
apparmor
|
|
|
|
seccomp
|
2022-06-06 09:22:32 -04:00
|
|
|
Profile: builtin
|
|
|
|
cgroupns
|
|
|
|
Kernel Version: 5.15.0-25-generic
|
|
|
|
Operating System: Ubuntu 22.04 LTS
|
2019-01-25 08:10:59 -05:00
|
|
|
OSType: linux
|
|
|
|
Architecture: x86_64
|
2022-06-06 09:22:32 -04:00
|
|
|
CPUs: 1
|
|
|
|
Total Memory: 991.7 MiB
|
|
|
|
Name: ip-172-30-0-91.ec2.internal
|
|
|
|
ID: 4cee4408-10d2-4e17-891c-a41736ac4536
|
2019-01-25 08:10:59 -05:00
|
|
|
Docker Root Dir: /var/lib/docker
|
2022-06-06 09:22:32 -04:00
|
|
|
Debug Mode: false
|
|
|
|
Username: gordontheturtle
|
2019-01-25 08:10:59 -05:00
|
|
|
Registry: https://index.docker.io/v1/
|
|
|
|
Experimental: false
|
2022-06-06 09:22:32 -04:00
|
|
|
Insecure registries:
|
|
|
|
myinsecurehost:5000
|
2019-01-25 08:10:59 -05:00
|
|
|
127.0.0.0/8
|
|
|
|
Live Restore Enabled: false
|
2017-02-07 18:42:48 -05:00
|
|
|
```
|
|
|
|
|
2022-03-30 09:05:29 -04:00
|
|
|
### <a name=format></a> Format the output (--format)
|
2016-06-21 05:15:17 -04:00
|
|
|
|
|
|
|
You can also specify the output format:
|
|
|
|
|
2021-08-21 08:54:14 -04:00
|
|
|
```console
|
2017-02-07 18:42:48 -05:00
|
|
|
$ docker info --format '{{json .}}'
|
|
|
|
|
|
|
|
{"ID":"I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S","Containers":14, ...}
|
|
|
|
```
|
|
|
|
|
|
|
|
### Run `docker info` on Windows
|
2016-09-07 18:10:00 -04:00
|
|
|
|
2022-06-06 09:22:32 -04:00
|
|
|
Here is a sample output for a daemon running on Windows Server:
|
2016-09-07 18:10:00 -04:00
|
|
|
|
2020-05-11 11:32:52 -04:00
|
|
|
```console
|
2022-06-06 09:22:32 -04:00
|
|
|
C:\> docker info
|
|
|
|
|
2019-01-25 08:10:59 -05:00
|
|
|
Client:
|
2020-05-07 07:28:37 -04:00
|
|
|
Context: default
|
2019-01-25 08:10:59 -05:00
|
|
|
Debug Mode: false
|
2022-06-06 09:22:32 -04:00
|
|
|
Plugins:
|
|
|
|
buildx: Docker Buildx (Docker Inc., v0.8.2-docker)
|
|
|
|
compose: Docker Compose (Docker Inc., v2.6.0)
|
|
|
|
scan: Docker Scan (Docker Inc., v0.17.0)
|
2019-01-25 08:10:59 -05:00
|
|
|
|
|
|
|
Server:
|
|
|
|
Containers: 1
|
|
|
|
Running: 0
|
|
|
|
Paused: 0
|
|
|
|
Stopped: 1
|
|
|
|
Images: 17
|
2022-06-06 09:22:32 -04:00
|
|
|
Server Version: 20.10.16
|
2019-01-25 08:10:59 -05:00
|
|
|
Storage Driver: windowsfilter
|
|
|
|
Logging Driver: json-file
|
|
|
|
Plugins:
|
|
|
|
Volume: local
|
2022-06-06 09:22:32 -04:00
|
|
|
Network: ics internal l2bridge l2tunnel nat null overlay private transparent
|
|
|
|
Log: awslogs etwlogs fluentd gcplogs gelf json-file local logentries splunk syslog
|
2019-01-25 08:10:59 -05:00
|
|
|
Swarm: inactive
|
|
|
|
Default Isolation: process
|
2022-06-06 09:22:32 -04:00
|
|
|
Kernel Version: 10.0 20348 (20348.1.amd64fre.fe_release.210507-1500)
|
|
|
|
Operating System: Microsoft Windows Server Version 21H2 (OS Build 20348.707)
|
2019-01-25 08:10:59 -05:00
|
|
|
OSType: windows
|
|
|
|
Architecture: x86_64
|
|
|
|
CPUs: 8
|
|
|
|
Total Memory: 3.999 GiB
|
|
|
|
Name: WIN-V0V70C0LU5P
|
2022-06-06 09:22:32 -04:00
|
|
|
ID: 2880d38d-464e-4d01-91bd-c76f33ba3981
|
|
|
|
Docker Root Dir: C:\ProgramData\docker
|
2019-01-25 08:10:59 -05:00
|
|
|
Debug Mode: false
|
|
|
|
Registry: https://index.docker.io/v1/
|
2022-06-06 09:22:32 -04:00
|
|
|
Experimental: true
|
2019-01-25 08:10:59 -05:00
|
|
|
Insecure Registries:
|
2022-06-06 09:22:32 -04:00
|
|
|
myregistry:5000
|
2019-01-25 08:10:59 -05:00
|
|
|
127.0.0.0/8
|
|
|
|
Registry Mirrors:
|
|
|
|
http://192.168.1.2/
|
|
|
|
http://registry-mirror.example.com:5000/
|
|
|
|
Live Restore Enabled: false
|
2017-02-07 18:42:48 -05:00
|
|
|
```
|