Querying Information
Querying the Service Version
Description
The isula version command is run to query the version of the iSulad service.
Usage
isula version
Example
Query the version information.
isula version
If the iSulad service is running properly, you can view the information about versions of the client, server, and OCI config.
Client:
Version: 2.0.18
Git commit: cbbf3711bc84e5f3ef3147b4e15d85888f33cb39
Built: 2023-01-14T10:26:01.164407949+08:00
Server:
Version: 2.0.18
Git commit: cbbf3711bc84e5f3ef3147b4e15d85888f33cb39
Built: 2023-01-14T10:26:01.164407949+08:00
OCI config:
Version: 1.0.1
Default file: /etc/default/isulad/config.json
If the iSulad service is not running, only the client information is queried and a message is displayed indicating that the connection times out.
Client:
Version: 2.0.18
Git commit: cbbf3711bc84e5f3ef3147b4e15d85888f33cb39
Built: 2023-01-14T10:26:01.164407949+08:00
Can not connect with server.Is the iSulad daemon running on the host?
Therefore, the isula version command is often used to check whether the iSulad service is running properly.
Querying System-level Information
Description
The isula info command is run to query the system-level information, number of containers, and number of images.
Usage
isula info
Example
Query system-level information, including the number of containers, number of images, kernel version, and operating system (OS).
$ isula info
Containers: 2
Running: 0
Paused: 0
Stopped: 2
Images: 8
Server Version: 2.0.18
Storage Driver: overlay
Backing Filesystem: extfs
Supports d_type: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Hugetlb Pagesize: 2MB
Kernel Version: 5.10.0-136.12.0.86.oe2203sp1.x86_64
Operating System: openEuler 22.03 (LTS-SP1)
OSType: Linux
Architecture: x86_64
CPUs: 8
Total Memory: 7 GB
Name: localhost.localdomain
iSulad Root Dir: /var/lib/isulad