mirror of https://github.com/docker/docs.git
73 lines
5.8 KiB
YAML
73 lines
5.8 KiB
YAML
command: docker system info
|
|
short: Display system-wide information
|
|
long: "This command displays system wide information regarding the Docker installation.\nInformation
|
|
displayed includes the kernel version, number of containers and images.\nThe number
|
|
of images shown is the number of unique images. The same image tagged\nunder different
|
|
names is counted only once.\n\nIf a format is specified, the given template will
|
|
be executed instead of the\ndefault format. Go's **text/template** package\ndescribes
|
|
all the details of the format.\n\nDepending on the storage driver in use, additional
|
|
information can be shown, such\nas pool name, data file, metadata file, data space
|
|
used, total data space, metadata\nspace used, and total metadata space.\n\nThe data
|
|
file is where the images are stored and the metadata file is where the\nmeta data
|
|
regarding those images are stored. When run for the first time Docker\nallocates
|
|
a certain amount of data space and meta data space from the space\navailable on
|
|
the volume where `/var/lib/docker` is mounted.\n\n# EXAMPLES\n\n## Display Docker
|
|
system information\n\nHere is a sample output for a daemon running on Ubuntu, using
|
|
the overlay2\nstorage driver:\n\n $ docker -D info\n Containers: 14\n Running:
|
|
3\n Paused: 1\n Stopped: 10\n Images: 52\n Server Version: 1.13.0\n
|
|
\ Storage Driver: overlay2\n Backing Filesystem: extfs\n Supports d_type:
|
|
true\n Native Overlay Diff: false\n Logging Driver: json-file\n Cgroup
|
|
Driver: cgroupfs\n Plugins:\n Volume: local\n Network: bridge host macvlan
|
|
null overlay\n Swarm: active\n NodeID: rdjq45w1op418waxlairloqbm\n Is
|
|
Manager: true\n ClusterID: te8kdyw33n36fqiz74bfjeixd\n Managers: 1\n Nodes:
|
|
2\n Orchestration:\n Task History Retention Limit: 5\n Raft:\n Snapshot
|
|
Interval: 10000\n Number of Old Snapshots to Retain: 0\n Heartbeat Tick:
|
|
1\n Election Tick: 3\n Dispatcher:\n Heartbeat Period: 5 seconds\n
|
|
\ CA Configuration:\n Expiry Duration: 3 months\n Node Address: 172.16.66.128
|
|
172.16.66.129\n Manager Addresses:\n 172.16.66.128:2477\n Runtimes:
|
|
runc\n Default Runtime: runc\n Init Binary: docker-init\n containerd version:
|
|
8517738ba4b82aff5662c97ca4627e7e4d03b531\n runc version: ac031b5bf1cc92239461125f4c1ffb760522bbf2\n
|
|
\ init version: N/A (expected: v0.13.0)\n Security Options:\n apparmor\n
|
|
\ seccomp\n Profile: default\n Kernel Version: 4.4.0-31-generic\n Operating
|
|
System: Ubuntu 16.04.1 LTS\n OSType: linux\n Architecture: x86_64\n CPUs:
|
|
2\n Total Memory: 1.937 GiB\n Name: ubuntu\n ID: H52R:7ZR6:EIIA:76JG:ORIY:BVKF:GSFU:HNPG:B5MK:APSC:SZ3Q:N326\n
|
|
\ Docker Root Dir: /var/lib/docker\n Debug Mode (client): true\n Debug Mode
|
|
(server): true\n File Descriptors: 30\n Goroutines: 123\n System Time:
|
|
2016-11-12T17:24:37.955404361-08:00\n EventsListeners: 0\n Http Proxy: http://test:test@proxy.example.com:8080\n
|
|
\ Https Proxy: https://test:test@proxy.example.com:8080\n No Proxy: localhost,127.0.0.1,docker-registry.somecorporation.com\n
|
|
\ Registry: https://index.docker.io/v1/\n WARNING: No swap limit support\n
|
|
\ Labels:\n storage=ssd\n staging=true\n Experimental: false\n Insecure
|
|
Registries:\n 127.0.0.0/8\n Registry Mirrors:\n http://192.168.1.2/\n
|
|
\ http://registry-mirror.example.com:5000/\n Live Restore Enabled: false\n\n\n\nThe
|
|
global `-D` option tells all `docker` commands to output debug information.\n\nThe
|
|
example below shows the output for a daemon running on Red Hat Enterprise Linux,\nusing
|
|
the devicemapper storage driver. As can be seen in the output, additional\ninformation
|
|
about the devicemapper storage driver is shown:\n\n $ docker info\n Containers:
|
|
14\n Running: 3\n Paused: 1\n Stopped: 10\n Untagged Images: 52\n
|
|
\ Server Version: 1.10.3\n Storage Driver: devicemapper\n Pool Name: docker-202:2-25583803-pool\n
|
|
\ Pool Blocksize: 65.54 kB\n Base Device Size: 10.74 GB\n Backing Filesystem:
|
|
xfs\n Data file: /dev/loop0\n Metadata file: /dev/loop1\n Data Space
|
|
Used: 1.68 GB\n Data Space Total: 107.4 GB\n Data Space Available: 7.548
|
|
GB\n Metadata Space Used: 2.322 MB\n Metadata Space Total: 2.147 GB\n Metadata
|
|
Space Available: 2.145 GB\n Udev Sync Supported: true\n Deferred Removal
|
|
Enabled: false\n Deferred Deletion Enabled: false\n Deferred Deleted Device
|
|
Count: 0\n Data loop file: /var/lib/docker/devicemapper/devicemapper/data\n
|
|
\ Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata\n Library
|
|
Version: 1.02.107-RHEL7 (2015-12-01)\n Execution Driver: native-0.2\n Logging
|
|
Driver: json-file\n Plugins:\n Volume: local\n Network: null host bridge\n
|
|
\ Kernel Version: 3.10.0-327.el7.x86_64\n Operating System: Red Hat Enterprise
|
|
Linux Server 7.2 (Maipo)\n OSType: linux\n Architecture: x86_64\n CPUs:
|
|
1\n Total Memory: 991.7 MiB\n Name: ip-172-30-0-91.ec2.internal\n ID: I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S\n
|
|
\ Docker Root Dir: /var/lib/docker\n Debug mode (client): false\n Debug
|
|
mode (server): false\n Username: gordontheturtle\n Registry: https://index.docker.io/v1/\n
|
|
\ Insecure registries:\n myinsecurehost:5000\n 127.0.0.0/8\n\nYou can
|
|
also specify the output format:\n\n $ docker info --format '{{json .}}'\n\t{\"ID\":\"I54V:OLXT:HVMM:TPKO:JPHQ:CQCD:JNLC:O3BZ:4ZVJ:43XJ:PFHZ:6N2S\",\"Containers\":14,
|
|
...}\n"
|
|
usage: docker system info [OPTIONS]
|
|
pname: docker system
|
|
plink: docker_system.yaml
|
|
options:
|
|
- option: format
|
|
shorthand: f
|
|
description: Format the output using the given Go template
|