All Products
Search
Document Center

Function Compute:CustomContainerConfigInfo

Last Updated:Sep 23, 2024
ParameterTypeDescriptionExample
object

The function configurations for a custom container.

argsstring

The startup argument 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. Valid values:

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

The information about the acceleration of the custom container.

instanceIDstring

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

cri-xxxxxxxxxx
webServerModeboolean

Specifies whether to enable web server mode.

  • true (default): enables web server mode. In this case, web servers must be implemented in container images to listen for and process requests.
  • false: disables web server mode. In this case, the container exits the process after running and the exit code must be 0.
true