All Products
Search
Document Center

DescribeContainerLog

Last Updated: Oct 25, 2018

You can run this command to obtain container group logs.

  1. aliyun eci DescribeContainerLog
  2. --RegionId
  3. --ContainerGroupId
  4. --ContainerName
  5. [--StartTime]
  6. [--Tail]

Example

  1. aliyun eci DescribeContainerLog --ContainerGroupId eci-uf68plmngjqlc8n1nh9b --ContainerName u1
  2. {"RequestId":"BE720688-4DF1-4D89-8EF6-F0453DE7E80F","ContainerName":"u1","Content":""}

Required parameters

RegionId

The ID of the region in which the instance resides.

ContainerGroupId

The ID of the container group.

ContainerName

The name of the container group.

Optional parameters

StartTime

The start time of the log.

Tail

Default: 500 lines. Maximum: 2,000 lines. Maximum size: 1 MB.