All Products
Search
Document Center

Function Compute (2.0):CustomContainerConfig

Last Updated:Mar 03, 2024
ParameterTypeDescriptionExample
object

Function configurations for a custom container.

argsstring

The startup parameter of the container.

["-arg1", "value1"]
commandstring

The startup command of the container.

["/code/myserver"]
imagestring

The endpoint of the container image.

registry-vpc.cn-hangzhou.aliyuncs.com/fc-demo/helloworld:v1beta1
accelerationTypestring

Specifies whether to enable image acceleration. Default value: Default. Valid values:

  • Default: enables image acceleration.
  • None: disables image acceleration.
Default
instanceIDstring

The ID of the image repository for the Container Registry Enterprise Edition. You must specify this parameter when you use an image for Container Registry Enterprise Edition.

cri-xxxxxxxxxx
webServerModeboolean

Specifies whether to use the web server mode for image running.

  • A value of true indicates that a web server is implemented in your container image to listen on ports and process requests.
  • A value of false indicates that the container must actively exit the process after it runs, and the exit code is 0.

Default value: true.

true