Updated on 2022-02-21 GMT+08:00

Checking Containerized Application Instances

Function

This command is used to check the cause of a fault occurred on a containerized application instance on a node.

Syntax

edgectl diagnose pod [params]PODNAME

  • diagnose can be abbreviated as diag.
  • pod can be abbreviated as po.

That is, the following abbreviated commands are supported:

edgectl diag pod [params]PODNAME

edgectl diag po [params]PODNAME

Parameters

Table 1 Parameter description

Parameter

Mandatory

Shorthand

Description

PODNAME

Yes

N/A

Name of a containerized application, that is, the name of the application created on the IEF console.

--detail

No

-x

Whether to print internal logs.

Precautions

PODNAME specifies the name of a containerized application, that is, the name of the application created on the IEF console.

This command diagnoses all the pods whose prefix matches the specified pod name.

Example

Diagnose application exception causes.

Edgectl diagnose pod edge-cs

If the check is successful, the information similar to the following is displayed:

table `meta` already exists, skip
Pod edge-cs-759d46f887-p9kgf is Ready.

+-----------------------+
| Pod diagnose succeed. |
+-----------------------+

If the check fails, the information similar to the following is displayed:

table `meta` already exists, skip
Failed to get Docker version.
ERROR6102: Make sure that Docker is running.
For more information, see IEF documentation.

+----------------------+
| Pod diagnose failed. |
+----------------------

In addition, an error code is displayed. You can obtain the help information from the documentation provided in the error message.