github.com/khulnasoft/cli@v0.0.0-20240402070845-01bcad7beefa/docs/reference/commandline/system_info.md (about)

     1  # info
     2  
     3  <!---MARKER_GEN_START-->
     4  Display system-wide information
     5  
     6  ### Aliases
     7  
     8  `docker system info`, `docker info`
     9  
    10  ### Options
    11  
    12  | Name                                   | Type     | Default | Description                                                                                                                                                                                                                                                        |
    13  |:---------------------------------------|:---------|:--------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
    14  | [`-f`](#format), [`--format`](#format) | `string` |         | Format output using a custom template:<br>'json':             Print in JSON format<br>'TEMPLATE':         Print output using the given Go template.<br>Refer to https://docs.docker.com/go/formatting/ for more information about formatting output with templates |
    15  
    16  
    17  <!---MARKER_GEN_END-->
    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://pkg.go.dev/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   Version:    25.0.0
    52   Context:    default
    53   Debug Mode: false
    54   Plugins:
    55    buildx: Docker Buildx (Docker Inc.)
    56      Version:  v0.12.1
    57      Path:     /usr/local/libexec/docker/cli-plugins/docker-buildx
    58    compose: Docker Compose (Docker Inc.)
    59      Version:  v2.24.1
    60      Path:     /usr/local/libexec/docker/cli-plugins/docker-compose
    61  
    62  Server:
    63   Containers: 14
    64    Running: 3
    65    Paused: 1
    66    Stopped: 10
    67   Images: 52
    68   Server Version: 25.0.0
    69   Storage Driver: overlayfs
    70    driver-type: io.containerd.snapshotter.v1
    71   Logging Driver: json-file
    72   Cgroup Driver: cgroupfs
    73   Cgroup Version: 2
    74   Plugins:
    75    Volume: local
    76    Network: bridge host ipvlan macvlan null overlay
    77    Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
    78   CDI spec directories:
    79    /etc/cdi
    80    /var/run/cdi
    81   Swarm: inactive
    82   Runtimes: runc io.containerd.runc.v2
    83   Default Runtime: runc
    84   Init Binary: docker-init
    85   containerd version: 71909c1814c544ac47ab91d2e8b84718e517bb99
    86   runc version: v1.1.11-0-g4bccb38
    87   init version: de40ad0
    88   Security Options:
    89    seccomp
    90     Profile: builtin
    91    cgroupns
    92   Kernel Version: 6.5.11-linuxkit
    93   Operating System: Alpine Linux v3.19
    94   OSType: linux
    95   Architecture: aarch64
    96   CPUs: 10
    97   Total Memory: 7.663GiB
    98   Name: 4a7ed206a70d
    99   ID: c20f7230-59a2-4824-a2f4-fda71c982ee6
   100   Docker Root Dir: /var/lib/docker
   101   Debug Mode: false
   102   Experimental: false
   103   Insecure Registries:
   104    127.0.0.0/8
   105   Live Restore Enabled: false
   106   Product License: Community Engine
   107  ```
   108  
   109  ### <a name="format"></a> Format the output (--format)
   110  
   111  You can also specify the output format:
   112  
   113  ```console
   114  $ docker info --format '{{json .}}'
   115  
   116  {"ID":"4cee4408-10d2-4e17-891c-a41736ac4536","Containers":14, ...}
   117  ```
   118  
   119  ### Run `docker info` on Windows
   120  
   121  Here is a sample output for a daemon running on Windows Server:
   122  
   123  ```console
   124  C:\> docker info
   125  
   126  Client: Docker Engine - Community
   127   Version:    24.0.0
   128   Context:    default
   129   Debug Mode: false
   130   Plugins:
   131    buildx: Docker Buildx (Docker Inc.)
   132      Version:  v0.10.4
   133      Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
   134    compose: Docker Compose (Docker Inc.)
   135      Version:  v2.17.2
   136      Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
   137  
   138  Server:
   139   Containers: 1
   140    Running: 0
   141    Paused: 0
   142    Stopped: 1
   143   Images: 17
   144   Server Version: 23.0.3
   145   Storage Driver: windowsfilter
   146   Logging Driver: json-file
   147   Plugins:
   148    Volume: local
   149    Network: ics internal l2bridge l2tunnel nat null overlay private transparent
   150    Log: awslogs etwlogs fluentd gcplogs gelf json-file local splunk syslog
   151   Swarm: inactive
   152   Default Isolation: process
   153   Kernel Version: 10.0 20348 (20348.1.amd64fre.fe_release.210507-1500)
   154   Operating System: Microsoft Windows Server Version 21H2 (OS Build 20348.707)
   155   OSType: windows
   156   Architecture: x86_64
   157   CPUs: 8
   158   Total Memory: 3.999 GiB
   159   Name: WIN-V0V70C0LU5P
   160   ID: 2880d38d-464e-4d01-91bd-c76f33ba3981
   161   Docker Root Dir: C:\ProgramData\docker
   162   Debug Mode: false
   163   Experimental: true
   164   Insecure Registries:
   165    myregistry:5000
   166    127.0.0.0/8
   167   Registry Mirrors:
   168     http://192.168.1.2/
   169     http://registry-mirror.example.com:5000/
   170   Live Restore Enabled: false
   171  ```