2014-04-16 14:07:55 -04:00
|
|
|
% DOCKER(1) Docker User Manuals
|
2014-06-30 22:58:04 -04:00
|
|
|
% Docker Community
|
|
|
|
% JUNE 2014
|
2014-04-16 14:07:55 -04:00
|
|
|
# NAME
|
2014-06-30 22:58:04 -04:00
|
|
|
docker-info - Display system-wide information
|
2014-04-16 14:07:55 -04:00
|
|
|
|
|
|
|
# SYNOPSIS
|
|
|
|
**docker info**
|
2014-10-15 17:14:12 -04:00
|
|
|
[**--help**]
|
2016-06-21 05:15:17 -04:00
|
|
|
[**-f**|**--format**[=*FORMAT*]]
|
2014-06-30 22:58:04 -04:00
|
|
|
|
2014-04-16 14:07:55 -04:00
|
|
|
# DESCRIPTION
|
|
|
|
This command displays system wide information regarding the Docker installation.
|
2016-03-14 00:53:30 -04:00
|
|
|
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
|
|
|
|
default format. Go's **text/template** package
|
|
|
|
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.
|
2014-04-16 14:07:55 -04:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
# OPTIONS
|
2014-10-15 17:14:12 -04:00
|
|
|
**--help**
|
|
|
|
Print usage statement
|
2014-04-16 14:07:55 -04:00
|
|
|
|
2016-06-21 05:15:17 -04:00
|
|
|
**-f**, **--format**=""
|
2016-10-18 06:50:11 -04:00
|
|
|
Format the output using the given Go template
|
2016-06-21 05:15:17 -04:00
|
|
|
|
2014-04-16 14:07:55 -04:00
|
|
|
# EXAMPLES
|
|
|
|
|
|
|
|
## Display Docker system information
|
|
|
|
|
2016-11-11 12:01:57 -05:00
|
|
|
Here is a sample output for a daemon running on Ubuntu, using the overlay2
|
2016-03-14 00:53:30 -04:00
|
|
|
storage driver:
|
2014-04-16 14:07:55 -04:00
|
|
|
|
2016-03-14 00:53:30 -04:00
|
|
|
$ docker -D info
|
2014-07-24 11:42:38 -04:00
|
|
|
Containers: 14
|
2015-10-27 16:12:33 -04:00
|
|
|
Running: 3
|
|
|
|
Paused: 1
|
|
|
|
Stopped: 10
|
2014-07-24 11:42:38 -04:00
|
|
|
Images: 52
|
2016-11-11 12:01:57 -05:00
|
|
|
Server Version: 1.13.0
|
|
|
|
Storage Driver: overlay2
|
2016-03-14 00:53:30 -04:00
|
|
|
Backing Filesystem: extfs
|
2016-11-11 12:01:57 -05:00
|
|
|
Supports d_type: true
|
|
|
|
Native Overlay Diff: false
|
2015-03-31 21:58:07 -04:00
|
|
|
Logging Driver: json-file
|
2016-02-18 05:10:31 -05:00
|
|
|
Cgroup Driver: cgroupfs
|
2015-10-23 02:08:26 -04:00
|
|
|
Plugins:
|
|
|
|
Volume: local
|
2016-11-11 12:01:57 -05:00
|
|
|
Network: bridge host macvlan null overlay
|
|
|
|
Swarm: active
|
|
|
|
NodeID: rdjq45w1op418waxlairloqbm
|
|
|
|
Is Manager: true
|
|
|
|
ClusterID: te8kdyw33n36fqiz74bfjeixd
|
|
|
|
Managers: 1
|
2016-06-16 19:29:23 -04:00
|
|
|
Nodes: 2
|
2016-11-11 12:01:57 -05:00
|
|
|
Orchestration:
|
|
|
|
Task History Retention Limit: 5
|
|
|
|
Raft:
|
|
|
|
Snapshot Interval: 10000
|
|
|
|
Number of Old Snapshots to Retain: 0
|
|
|
|
Heartbeat Tick: 1
|
|
|
|
Election Tick: 3
|
|
|
|
Dispatcher:
|
|
|
|
Heartbeat Period: 5 seconds
|
|
|
|
CA Configuration:
|
|
|
|
Expiry Duration: 3 months
|
|
|
|
Node Address: 172.16.66.128 172.16.66.129
|
|
|
|
Manager Addresses:
|
|
|
|
172.16.66.128:2477
|
|
|
|
Runtimes: runc
|
|
|
|
Default Runtime: runc
|
|
|
|
Init Binary: docker-init
|
|
|
|
containerd version: 8517738ba4b82aff5662c97ca4627e7e4d03b531
|
|
|
|
runc version: ac031b5bf1cc92239461125f4c1ffb760522bbf2
|
|
|
|
init version: N/A (expected: v0.13.0)
|
|
|
|
Security Options:
|
|
|
|
apparmor
|
|
|
|
seccomp
|
|
|
|
Profile: default
|
|
|
|
Kernel Version: 4.4.0-31-generic
|
|
|
|
Operating System: Ubuntu 16.04.1 LTS
|
2015-06-13 03:39:19 -04:00
|
|
|
OSType: linux
|
2015-11-14 17:03:02 -05:00
|
|
|
Architecture: x86_64
|
2016-11-11 12:01:57 -05:00
|
|
|
CPUs: 2
|
|
|
|
Total Memory: 1.937 GiB
|
|
|
|
Name: ubuntu
|
|
|
|
ID: H52R:7ZR6:EIIA:76JG:ORIY:BVKF:GSFU:HNPG:B5MK:APSC:SZ3Q:N326
|
2016-02-03 21:10:48 -05:00
|
|
|
Docker Root Dir: /var/lib/docker
|
2016-11-11 12:01:57 -05:00
|
|
|
Debug Mode (client): true
|
|
|
|
Debug Mode (server): true
|
|
|
|
File Descriptors: 30
|
|
|
|
Goroutines: 123
|
|
|
|
System Time: 2016-11-12T17:24:37.955404361-08:00
|
2016-03-14 00:53:30 -04:00
|
|
|
EventsListeners: 0
|
2016-11-23 11:20:12 -05:00
|
|
|
Http Proxy: http://test:test@proxy.example.com:8080
|
|
|
|
Https Proxy: https://test:test@proxy.example.com:8080
|
2016-03-14 00:53:30 -04:00
|
|
|
No Proxy: localhost,127.0.0.1,docker-registry.somecorporation.com
|
|
|
|
Registry: https://index.docker.io/v1/
|
|
|
|
WARNING: No swap limit support
|
|
|
|
Labels:
|
|
|
|
storage=ssd
|
|
|
|
staging=true
|
2016-11-11 12:01:57 -05:00
|
|
|
Experimental: false
|
|
|
|
Insecure Registries:
|
2016-03-14 00:53:30 -04:00
|
|
|
127.0.0.0/8
|
2016-11-23 11:20:12 -05:00
|
|
|
Registry Mirrors:
|
|
|
|
http://192.168.1.2/
|
|
|
|
http://registry-mirror.example.com:5000/
|
2016-11-11 12:01:57 -05:00
|
|
|
Live Restore Enabled: false
|
|
|
|
|
|
|
|
|
2016-03-14 00:53:30 -04:00
|
|
|
|
|
|
|
The global `-D` option tells all `docker` commands to output debug information.
|
|
|
|
|
|
|
|
The example below shows the output for a daemon running on Red Hat Enterprise Linux,
|
|
|
|
using the devicemapper storage driver. As can be seen in the output, additional
|
|
|
|
information about the devicemapper storage driver is shown:
|
|
|
|
|
|
|
|
$ docker info
|
|
|
|
Containers: 14
|
|
|
|
Running: 3
|
|
|
|
Paused: 1
|
|
|
|
Stopped: 10
|
|
|
|
Untagged Images: 52
|
|
|
|
Server Version: 1.10.3
|
|
|
|
Storage Driver: devicemapper
|
|
|
|
Pool Name: docker-202:2-25583803-pool
|
|
|
|
Pool Blocksize: 65.54 kB
|
|
|
|
Base Device Size: 10.74 GB
|
|
|
|
Backing Filesystem: xfs
|
|
|
|
Data file: /dev/loop0
|
|
|
|
Metadata file: /dev/loop1
|
|
|
|
Data Space Used: 1.68 GB
|
|
|
|
Data Space Total: 107.4 GB
|
|
|
|
Data Space Available: 7.548 GB
|
|
|
|
Metadata Space Used: 2.322 MB
|
|
|
|
Metadata Space Total: 2.147 GB
|
|
|
|
Metadata Space Available: 2.145 GB
|
|
|
|
Udev Sync Supported: true
|
|
|
|
Deferred Removal Enabled: false
|
|
|
|
Deferred Deletion Enabled: false
|
|
|
|
Deferred Deleted Device Count: 0
|
|
|
|
Data loop file: /var/lib/docker/devicemapper/devicemapper/data
|
|
|
|
Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
|
|
|
|
Library Version: 1.02.107-RHEL7 (2015-12-01)
|
|
|
|
Execution Driver: native-0.2
|
|
|
|
Logging Driver: json-file
|
|
|
|
Plugins:
|
|
|
|
Volume: local
|
|
|
|
Network: null host bridge
|
|
|
|
Kernel Version: 3.10.0-327.el7.x86_64
|
|
|
|
Operating System: Red Hat Enterprise Linux Server 7.2 (Maipo)
|
|
|
|
OSType: linux
|
|
|
|
Architecture: x86_64
|
|
|
|
CPUs: 1
|
|
|
|
Total Memory: 991.7 MiB
|
|
|
|
Name: ip-172-30-0-91.ec2.internal
|
|
|
|
ID: I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S
|
|
|
|
Docker Root Dir: /var/lib/docker
|
2016-02-03 21:10:48 -05:00
|
|
|
Debug mode (client): false
|
|
|
|
Debug mode (server): false
|
2016-11-23 11:20:12 -05:00
|
|
|
Username: gordontheturtle
|
2016-02-03 21:10:48 -05:00
|
|
|
Registry: https://index.docker.io/v1/
|
2016-02-16 17:45:48 -05:00
|
|
|
Insecure registries:
|
|
|
|
myinsecurehost:5000
|
|
|
|
127.0.0.0/8
|
2016-03-14 00:53:30 -04:00
|
|
|
|
2016-06-21 05:15:17 -04:00
|
|
|
You can also specify the output format:
|
|
|
|
|
|
|
|
$ docker info --format '{{json .}}'
|
|
|
|
{"ID":"I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S","Containers":14, ...}
|
|
|
|
|
2014-04-16 14:07:55 -04:00
|
|
|
# HISTORY
|
2014-04-17 11:36:58 -04:00
|
|
|
April 2014, Originally compiled by William Henry (whenry at redhat dot com)
|
2014-07-01 20:30:25 -04:00
|
|
|
based on docker.com source material and internal work.
|
2014-06-30 22:58:04 -04:00
|
|
|
June 2014, updated by Sven Dowideit <SvenDowideit@home.org.au>
|