Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

The docker info command

The docker info command

Docker Command ReferenceDocker Command Reference


The docker info command displays detailed information about the Docker system, including the Docker version, storage driver, number of images, number of containers, and other important configuration information.

The docker info command is very useful and helps users understand the overall state of the Docker environment.

Syntax

docker info [OPTIONS]

Example

View Docker system information.

$ docker info

Client:

 Context:    default

 Debug Mode: false

 Plugins:

  buildx: Docker Buildx (Docker Inc., 0.8.1)

  compose: Docker Compose (Docker Inc., 2.3.3)



Server:

 Containers: 3

  Running: 1

  Paused: 0

  Stopped: 2

 Images: 10

 Server Version: 20.10.7

 Storage Driver: overlay2

  Backing Filesystem: extfs

  Supports d_type: true

  Native Overlay Diff: true

 Logging Driver: json-file

 Cgroup Driver: cgroupfs

 Cgroup Version: 1

 Plugins:

  Volume: local

  Network: bridge host ipvlan macvlan null overlay

  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog

 Swarm: inactive

 Runtimes: runc

 Default Runtime: runc

 Init Binary: docker-init

 containerd version: d71fcd7d8303cbf684402823e425e9dd2e99285d

 runc version: b9ee9c6314599f1b4a7f497e1f1f856fe433d3b7

 init version: de40ad0

 Security Options:

  seccomp

   Profile: default

  selinux

 Kernel Version: 5.10.25-linuxkit

 Operating System: Docker Desktop

 OSType: linux

 Architecture: x86_64

 CPUs: 2

 Total Memory: 1.942GiB

 Name: docker-desktop

 ID: 3WZ2:ZQ7K:6K4E:6ZCR:YITZ:GH2S:6NUB:HTB5:OS7K:AAUI:K7CC:JZL3

 Docker Root Dir: /var/lib/docker

 Debug Mode: true

  File Descriptors: 45

  Goroutines: 49

  System Time: 2024-07-23T09:41:47.2527914Z

  EventsListeners: 4

 HTTP Proxy: http://proxy.example.com:80

 HTTPS Proxy: https://proxy.example.com:443

 No Proxy: localhost,127.0.0.1,docker-registry.example.com

 Registry: https://index.docker.io/v1/

 Labels:

 Experimental: false

 Insecure Registries:

  127.0.0.0/8

 Registry Mirrors:

 Live Restore Enabled: false



WARNING: No swap limit support

Output explanation

Client: Information about the Docker client.

Server: Information about the Docker server (daemon).

- `Running`: Number of running containers. - `Paused`: Number of paused containers. - `Stopped`: Number of stopped containers. - `File Descriptors`: Number of file descriptors. - `Goroutines`: Number of Goroutines. - `System Time`: System time. - `EventsListeners`: Number of event listeners.

WARNING: Warning messages (such as swap limit support not being enabled).


Docker Command ReferenceDocker Command Reference